summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-17 23:56:05 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-17 23:56:05 +0000
commit4be9013ec11b117f77ac091f75998fab6c3dbfcb (patch)
tree5047265cd7c3c6b712dcbbbbafbe1d8242de44cd
parentfafc52c7869a92278538c20f8a24e48b047c7cdb (diff)
downloadbcm5719-llvm-4be9013ec11b117f77ac091f75998fab6c3dbfcb.tar.gz
bcm5719-llvm-4be9013ec11b117f77ac091f75998fab6c3dbfcb.zip
Revert r166157 because some tests fail...
llvm-svn: 166159
-rw-r--r--llvm/lib/VMCore/Verifier.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 88ad5b11cbe..fd629b485aa 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/lib/VMCore/Verifier.cpp
@@ -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 =
OpenPOWER on IntegriCloud