Silence a bogus gcc warning
authorChris Lattner <sabre@nondot.org>
Sat, 20 May 2006 23:14:03 +0000 (23:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 20 May 2006 23:14:03 +0000 (23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28422 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index f25ac97ef5c62070366003b7f6ac4b12cf3380f1..2a48fc06c94bc9fc4866fd7169596459fcd514fe 100644 (file)
@@ -4822,7 +4822,7 @@ Value *InstCombiner::EvaluateInDifferentType(Value *V, const Type *Ty) {
 
   // Otherwise, it must be an instruction.
   Instruction *I = cast<Instruction>(V);
-  Instruction *Res;
+  Instruction *Res = 0;
   switch (I->getOpcode()) {
   case Instruction::And:
   case Instruction::Or: