Fix a compile error with VC++, which things that static const arrays need
authorChris Lattner <sabre@nondot.org>
Wed, 12 Jan 2005 04:23:22 +0000 (04:23 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Jan 2005 04:23:22 +0000 (04:23 +0000)
to be dynamically initialized. :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19503 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelPattern.cpp

index c4adfa46faac727dc668c887e9747b39bb3cc3f0..f574a631e8868e2736e2f1ecec3f6bf57e9d6989 100644 (file)
@@ -1499,7 +1499,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
   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 @@ unsigned ISel::SelectExpr(SDOperand N) {
       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))) {