summaryrefslogtreecommitdiff
path: root/lib/VMCore
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
commit6ebddd2d6558211a5e4a76b5906633b431e12006 (patch)
tree4f1606729c936bc7de7dd995ec1c1efbd82bd296 /lib/VMCore
parent73f75cf2007c3271b2d551c399a78689030c95eb (diff)
downloadllvm-6ebddd2d6558211a5e4a76b5906633b431e12006.tar.gz
llvm-6ebddd2d6558211a5e4a76b5906633b431e12006.tar.bz2
llvm-6ebddd2d6558211a5e4a76b5906633b431e12006.tar.xz
Revert r166157 because some tests fail...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Verifier.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index 88ad5b11cb..fd629b485a 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/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 =