From: Chris Lattner Date: Sun, 11 Apr 2004 01:29:30 +0000 (+0000) Subject: Add a missing break, which caused a crash in an obscure situation X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a0ae8196a1d2d1291949e268afc1bf932c9f8028;p=oota-llvm.git Add a missing break, which caused a crash in an obscure situation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12825 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index 1fee5012b45..641ceaebc23 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -685,6 +685,7 @@ static Instruction::BinaryOps evaluateRelation(const Constant *V1, CE1->getType()->isLosslesslyConvertibleTo(CE1Op0->getType())) return evaluateRelation(CE1Op0, Constant::getNullValue(CE1Op0->getType())); + break; case Instruction::GetElementPtr: // Ok, since this is a getelementptr, we know that the constant has a