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:
parent
605a47ebe4
commit
1d755bccee
@ -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
Block a user