projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09e3c8f
)
[opaque pointer type] Query the GEP for its source element type directly rather than...
author
David Blaikie
<dblaikie@gmail.com>
Fri, 17 Apr 2015 22:32:17 +0000
(22:32 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Fri, 17 Apr 2015 22:32:17 +0000
(22:32 +0000)
llvm-svn: 235235
llvm/lib/IR/Verifier.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Verifier.cpp
b/llvm/lib/IR/Verifier.cpp
index
fba78e9
..
bd9f3f3
100644
(file)
--- a/
llvm/lib/IR/Verifier.cpp
+++ b/
llvm/lib/IR/Verifier.cpp
@@
-2451,8
+2451,7
@@
void Verifier::visitGetElementPtrInst(GetElementPtrInst &GEP) {
Assert(isa<PointerType>(TargetTy),
"GEP base pointer is not a vector or a vector of pointers", &GEP);
- Assert(cast<PointerType>(TargetTy)->getElementType()->isSized(),
- "GEP into unsized type!", &GEP);
+ Assert(GEP.getSourceElementType()->isSized(), "GEP into unsized type!", &GEP);
Assert(GEP.getPointerOperandType()->isVectorTy() ==
GEP.getType()->isVectorTy(),
"Vector GEP must return a vector value", &GEP);