aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86ISelPattern.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-12 04:23:22 +0000
committerChris Lattner <sabre@nondot.org>2005-01-12 04:23:22 +0000
commita56cea44958ff316c34e4d35bc24acfbca5f02f2 (patch)
treeeb5a77c5c844f0e00475a1b6f047601550276ad2 /lib/Target/X86/X86ISelPattern.cpp
parent7dbcb75b151a5b00863ec90e9893925fcfc51cf6 (diff)
Fix a compile error with VC++, which things that static const arrays need
to be dynamically initialized. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelPattern.cpp')
-rw-r--r--lib/Target/X86/X86ISelPattern.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp
index c4adfa46fa..f574a631e8 100644
--- a/lib/Target/X86/X86ISelPattern.cpp
+++ b/lib/Target/X86/X86ISelPattern.cpp
@@ -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))) {