[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 2 09:29:48 PDT 2005



Changes in directory llvm/lib/Target/X86:

X86ISelPattern.cpp updated: 1.180 -> 1.181
---
Log message:

silence some warnings


---
Diffs of the changes:  (+2 -3)

 X86ISelPattern.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.180 llvm/lib/Target/X86/X86ISelPattern.cpp:1.181
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.180	Wed Sep 28 17:29:17 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp	Sun Oct  2 11:29:36 2005
@@ -2219,8 +2219,7 @@
 
 unsigned ISel::SelectExpr(SDOperand N) {
   unsigned Result;
-  unsigned Tmp1, Tmp2, Tmp3;
-  unsigned Opc = 0;
+  unsigned Tmp1 = 0, Tmp2 = 0, Tmp3 = 0, Opc = 0;
   SDNode *Node = N.Val;
   SDOperand Op0, Op1;
 
@@ -4148,7 +4147,7 @@
 
 
 void ISel::Select(SDOperand N) {
-  unsigned Tmp1, Tmp2, Opc;
+  unsigned Tmp1 = 0, Tmp2 = 0, Opc = 0;
 
   if (!ExprMap.insert(std::make_pair(N, 1)).second)
     return;  // Already selected.






More information about the llvm-commits mailing list