forked from OSchip/llvm-project
Revert r166157 because some tests fail...
llvm-svn: 166159
This commit is contained in:
parent
fafc52c786
commit
4be9013ec1
|
@ -1371,11 +1371,9 @@ void Verifier::visitGetElementPtrInst(GetElementPtrInst &GEP) {
|
|||
Type *TargetTy = GEP.getPointerOperandType()->getScalarType();
|
||||
|
||||
Assert1(isa<PointerType>(TargetTy),
|
||||
"GEP base pointer is not a vector or a vector of pointers", &GEP);
|
||||
"GEP base pointer is not a vector or a vector of pointers", &GEP);
|
||||
Assert1(cast<PointerType>(TargetTy)->getElementType()->isSized(),
|
||||
"GEP into unsized type!", &GEP);
|
||||
Assert1(GEP.getPointerOperand() != &GEP,
|
||||
"GEP is using the result as the pointer operand!", &GEP);
|
||||
|
||||
SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end());
|
||||
Type *ElTy =
|
||||
|
|
Loading…
Reference in New Issue