1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

getIndexedOffset() shd take vector of Values, not of Constants!

llvm-svn: 1484
This commit is contained in:
Vikram S. Adve 2001-12-15 00:35:48 +00:00
parent 605a47ebe4
commit 1d755bccee
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ public:
// stores that include the implicit form of getelementptr.
//
unsigned getIndexedOffset(const Type *Ty,
const vector<Constant*> &Indices) const;
const vector<Value*> &Indices) const;
inline const StructLayout *getStructLayout(const StructType *Ty) const {
return (const StructLayout*)((const Type*)Ty)->getOrCreateAnnotation(AID);

View File

@ -146,7 +146,7 @@ unsigned char TargetData::getTypeAlignment(const Type *Ty) const {
}
unsigned TargetData::getIndexedOffset(const Type *ptrTy,
const vector<Constant*> &Idx) const {
const vector<Value*> &Idx) const {
const PointerType *PtrTy = cast<const PointerType>(ptrTy);
unsigned Result = 0;