diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-17 23:56:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-17 23:56:05 +0000 |
commit | 6ebddd2d6558211a5e4a76b5906633b431e12006 (patch) | |
tree | 4f1606729c936bc7de7dd995ec1c1efbd82bd296 | |
parent | 73f75cf2007c3271b2d551c399a78689030c95eb (diff) | |
download | external_llvm-6ebddd2d6558211a5e4a76b5906633b431e12006.zip external_llvm-6ebddd2d6558211a5e4a76b5906633b431e12006.tar.gz external_llvm-6ebddd2d6558211a5e4a76b5906633b431e12006.tar.bz2 |
Revert r166157 because some tests fail...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166159 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 88ad5b1..fd629b4 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 = |