aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2012-05-17 03:38:19 +0000
committerFrancois Pichet <pichet2000@gmail.com>2012-05-17 03:38:19 +0000
commit3aca8799067c694cdd90b7fd2151ba4097886936 (patch)
tree85deb5faf6cea1c47a573c1c3d38029543c0d10f /utils
parent3778aeb74864390bf763424c45cc355ac330fbc9 (diff)
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/IntrinsicEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp
index d487c27608..0642f59ace 100644
--- a/utils/TableGen/IntrinsicEmitter.cpp
+++ b/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<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.