[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 23 17:40:33 PST 2005



Changes in directory llvm/lib/Target/SparcV9:

SparcV9BurgISel.cpp updated: 1.14 -> 1.15
---
Log message:

Fix a spurious warning.


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

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


Index: llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp:1.14 llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp:1.15
--- llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp:1.14	Mon Jan 17 00:47:26 2005
+++ llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp	Sun Jan 23 19:40:18 2005
@@ -627,7 +627,7 @@
   bool smallNegValue =isSigned && sC < 0 && sC != -sC && -sC < (int32_t)MAXSIMM;
 
   //Create TmpInstruction for intermediate values
-  TmpInstruction *tmpReg;
+  TmpInstruction *tmpReg = 0;
 
   // Set the high 22 bits in dest if non-zero and simm13 field of OR not enough
   if (!smallNegValue && (C & ~MAXLO) && C > MAXSIMM) {






More information about the llvm-commits mailing list