getIndexedOffset() shd take vector of Values, not of Constants!
llvm-svn: 1484
This commit is contained in:
parent
8234b04143
commit
721fee255c
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue