From b273b743732d609e9d64b5e21fb126648742dc77 Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Thu, 17 May 2012 03:38:19 +0000 Subject: [PATCH] Fix the MSVC 2010 build: disable the optimizer for a problematic function. llvm-svn: 156973 --- llvm/utils/TableGen/IntrinsicEmitter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp index d487c2760804..0642f59ace5e 100644 --- a/llvm/utils/TableGen/IntrinsicEmitter.cpp +++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp @@ -466,6 +466,7 @@ static void EncodeFixedValueType(MVT::SimpleValueType VT, Sig.push_back(~0U); } +#pragma optimize("",off) // MSVC 2010 optimizer can't deal with this function. static void EncodeFixedType(Record *R, SmallVectorImpl &Sig) { @@ -531,6 +532,7 @@ static void EncodeFixedType(Record *R, SmallVectorImpl &Sig) { assert(VT != MVT::isVoid); EncodeFixedValueType(VT, Sig); } +#pragma optimize("",on) /// ComputeFixedEncoding - If we can encode the type signature for this /// intrinsic into 32 bits, return it. If not, return ~0U.