summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-01-14 08:07:43 +0000
committerJay Foad <jay.foad@gmail.com>2011-01-14 08:07:43 +0000
commit1d4a8fe156fc65124ea03dde46f9aed74b0a3451 (patch)
tree1ea3c9bc40e4e50b40bff59ca07aa539cac27350 /llvm/lib/VMCore/Instructions.cpp
parent543384efb4b592eab24e914c6db30ee721bf77b0 (diff)
downloadbcm5719-llvm-1d4a8fe156fc65124ea03dde46f9aed74b0a3451.tar.gz
bcm5719-llvm-1d4a8fe156fc65124ea03dde46f9aed74b0a3451.zip
Remove casts between Value** and Constant**, which won't work if a
static_cast from Constant* to Value* has to adjust the "this" pointer. This is groundwork for PR889. llvm-svn: 123435
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 33acd0d040a..909dab9a651 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/lib/VMCore/Instructions.cpp
@@ -1174,6 +1174,12 @@ const Type* GetElementPtrInst::getIndexedType(const Type *Ptr,
}
const Type* GetElementPtrInst::getIndexedType(const Type *Ptr,
+ Constant* const *Idxs,
+ unsigned NumIdx) {
+ return getIndexedTypeInternal(Ptr, Idxs, NumIdx);
+}
+
+const Type* GetElementPtrInst::getIndexedType(const Type *Ptr,
uint64_t const *Idxs,
unsigned NumIdx) {
return getIndexedTypeInternal(Ptr, Idxs, NumIdx);
OpenPOWER on IntegriCloud