diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-12-15 00:35:48 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-12-15 00:35:48 +0000 |
commit | dd08e32deb39311824248be56be3bf3fbe64f39d (patch) | |
tree | aaa4f0e26126ff61dd7c76449a3dbb05ca87771c | |
parent | cee9d1c3fa15978cfbdba87f9ee7252db3e8ace9 (diff) | |
download | external_llvm-dd08e32deb39311824248be56be3bf3fbe64f39d.zip external_llvm-dd08e32deb39311824248be56be3bf3fbe64f39d.tar.gz external_llvm-dd08e32deb39311824248be56be3bf3fbe64f39d.tar.bz2 |
getIndexedOffset() shd take vector of Values, not of Constants!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1484 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetData.h | 2 | ||||
-rw-r--r-- | lib/Target/TargetData.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 5dd41bf..edd6b26 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -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); diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index a2383d1..b290f29 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -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; |