From: Chris Lattner Date: Sat, 20 May 2006 23:14:03 +0000 (+0000) Subject: Silence a bogus gcc warning X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=01859e88539f73a03459e420eb619ba76468cbc9;p=oota-llvm.git Silence a bogus gcc warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28422 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index f25ac97ef5c..2a48fc06c94 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -4822,7 +4822,7 @@ Value *InstCombiner::EvaluateInDifferentType(Value *V, const Type *Ty) { // Otherwise, it must be an instruction. Instruction *I = cast(V); - Instruction *Res; + Instruction *Res = 0; switch (I->getOpcode()) { case Instruction::And: case Instruction::Or: