[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat May 20 16:14:16 PDT 2006



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.482 -> 1.483
---
Log message:

Silence a bogus gcc warning


---
Diffs of the changes:  (+1 -1)

 InstructionCombining.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.482 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.483
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.482	Sun May 14 01:46:03 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sat May 20 18:14:03 2006
@@ -4822,7 +4822,7 @@
 
   // 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:






More information about the llvm-commits mailing list