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

Chris Lattner lattner at cs.uiuc.edu
Tue Jan 11 20:23:37 PST 2005



Changes in directory llvm/lib/Target/X86:

X86ISelPattern.cpp updated: 1.44 -> 1.45
---
Log message:

Fix a compile error with VC++, which things that static const arrays need
to be dynamically initialized. :(


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

Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.44 llvm/lib/Target/X86/X86ISelPattern.cpp:1.45
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.44	Tue Jan 11 22:21:28 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp	Tue Jan 11 22:23:22 2005
@@ -1499,7 +1499,7 @@
   case ISD::MUL:
   case ISD::AND:
   case ISD::OR:
-  case ISD::XOR:
+  case ISD::XOR: {
     static const unsigned SUBTab[] = {
       X86::SUB8ri, X86::SUB16ri, X86::SUB32ri, 0, 0,
       X86::SUB8rm, X86::SUB16rm, X86::SUB32rm, X86::FSUB32m, X86::FSUB64m,
@@ -1680,7 +1680,7 @@
       BuildMI(BB, X86::MOV8rr, 1, Result).addReg(X86::AL);
     }
     return Result;
-
+  }
   case ISD::SELECT:
     if (N.getValueType() != MVT::i1 && N.getValueType() != MVT::i8) {
       if (getRegPressure(N.getOperand(1)) > getRegPressure(N.getOperand(2))) {






More information about the llvm-commits mailing list