From 714a3a6cb51d5156c9d83aff9f6e1fb687c2d1ae Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 2 Sep 2003 06:45:34 +0000 Subject: [PATCH] Remove assertion which is never reached. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8318 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/iMemory.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp index db9b9617a20..559c15efe12 100644 --- a/lib/VMCore/iMemory.cpp +++ b/lib/VMCore/iMemory.cpp @@ -94,7 +94,6 @@ GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector &Idx, : Instruction(PointerType::get(checkType(getIndexedType(Ptr->getType(), Idx, true))), GetElementPtr, Name, InBe) { - assert(getIndexedType(Ptr->getType(), Idx, true) && "gep operands invalid!"); Operands.reserve(1+Idx.size()); Operands.push_back(Use(Ptr, this)); -- 2.34.1