summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-12-15 00:35:48 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-12-15 00:35:48 +0000
commit721fee255cb181bbe5152fe189e78274a7e388e8 (patch)
treea099e3c881e951c9bbb620234d8d30fe24dad297 /llvm/lib/Target
parent8234b04143f13fba33103f7a5e6dffe5545da04a (diff)
downloadbcm5719-llvm-721fee255cb181bbe5152fe189e78274a7e388e8.tar.gz
bcm5719-llvm-721fee255cb181bbe5152fe189e78274a7e388e8.zip
getIndexedOffset() shd take vector of Values, not of Constants!
llvm-svn: 1484
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/TargetData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index a2383d12a2a..b290f29b856 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud