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 8234b04143
commit 721fee255c
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;