From a56cea44958ff316c34e4d35bc24acfbca5f02f2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 12 Jan 2005 04:23:22 +0000 Subject: [PATCH] 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 --- lib/Target/X86/X86ISelPattern.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index c4adfa46faa..f574a631e88 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))) {