From: Vikram S. Adve Date: Sat, 15 Dec 2001 00:35:48 +0000 (+0000) Subject: getIndexedOffset() shd take vector of Values, not of Constants! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dd08e32deb39311824248be56be3bf3fbe64f39d;p=oota-llvm.git 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 --- diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 5dd41bfd6ac..edd6b26540f 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 &Indices) const; + const vector &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 a2383d12a2a..b290f29b856 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 &Idx) const { + const vector &Idx) const { const PointerType *PtrTy = cast(ptrTy); unsigned Result = 0;