summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-03-30 21:41:43 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-03-30 21:41:43 +0000
commitd288fb86810bbac1c2890b70e9ecd6f03744dfa7 (patch)
tree22054f443f756bd7ca2d32649f00aaea4ebf4245 /llvm/lib/IR/Verifier.cpp
parent0d68b4c5ed89f1c8a9e4466badf69de159ee20d7 (diff)
downloadbcm5719-llvm-d288fb86810bbac1c2890b70e9ecd6f03744dfa7.tar.gz
bcm5719-llvm-d288fb86810bbac1c2890b70e9ecd6f03744dfa7.zip
[opaque pointer type] Change GetElementPtrInst::getIndexedType to take the pointee type
This pushes the use of PointerType::getElementType up into several callers - I'll essentially just have to keep pushing that up the stack until I can eliminate every call to it... llvm-svn: 233604
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index a30fedd119d..e5488593b8f 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -2344,7 +2344,7 @@ void Verifier::visitGetElementPtrInst(GetElementPtrInst &GEP) {
SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end());
Type *ElTy =
- GetElementPtrInst::getIndexedType(GEP.getPointerOperandType(), Idxs);
+ GetElementPtrInst::getIndexedType(GEP.getSourceElementType(), Idxs);
Assert(ElTy, "Invalid indices for GEP pointer type!", &GEP);
Assert(GEP.getType()->getScalarType()->isPointerTy() &&
OpenPOWER on IntegriCloud