getIndexedOffset() shd take vector of Values, not of Constants!
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 15 Dec 2001 00:35:48 +0000 (00:35 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 15 Dec 2001 00:35:48 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1484 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetData.h
lib/Target/TargetData.cpp

index 5dd41bfd6ac9b3e9431d3313aec74c39d5f5c87d..edd6b26540f8385599d9ded8974b7767fca56df9 100644 (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);
index a2383d12a2a4ca0fe8e689796d510a818ad51b91..b290f29b8569a529b493bdf32deeace0a4014951 100644 (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;