mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 15:10:33 +00:00
[opaque pointer type] Query the GEP for its source element type directly rather than finding it through the pointer type of the first operand in the Verifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40294c3e49
commit
1b44f585f9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user