From: Brian Gaeke Date: Tue, 2 Sep 2003 06:45:34 +0000 (+0000) Subject: Remove assertion which is never reached. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=714a3a6cb51d5156c9d83aff9f6e1fb687c2d1ae;p=oota-llvm.git Remove assertion which is never reached. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8318 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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));