mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
Fix the MSVC 2010 build: disable the optimizer for a problematic function.
llvm-svn: 156973
This commit is contained in:
@@ -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<unsigned> &Sig) {
|
||||
|
||||
@@ -531,6 +532,7 @@ static void EncodeFixedType(Record *R, SmallVectorImpl<unsigned> &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.
|
||||
|
||||
Reference in New Issue
Block a user