mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Fix the MSVC 2010 build: disable the optimizer for a problematic function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3778aeb748
commit
3aca879906
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user