diff options
author | Lang Hames <lhames@gmail.com> | 2012-11-15 07:51:26 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-11-15 07:51:26 +0000 |
commit | 931c0833811c030884fa50b2ccbd3c34f0f4c4ee (patch) | |
tree | 744f54a29af8fa008d590d0bc3cdf6cb78211d86 /lib/CodeGen/CGExprScalar.cpp | |
parent | 5bab9ae87c41148ee2f92d312945c1e9303222e8 (diff) |
Make -ffp-contract a codegen option, rather than a laguage option. This makes
more sense anyway - it determines how expressions are codegen'd. It also ensures
that -ffp-contract=fast has the intended effect when compiling LLVM IR.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index b429b1d6e4..ed8b9c69ec 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -2217,7 +2217,7 @@ static Value* tryEmitFMulAdd(const BinOpInfo &op, // Check whether -ffp-contract=on. (If -ffp-contract=off/fast, fusing is // either disabled, or handled entirely by the LLVM backend). - if (CGF.getLangOpts().getFPContractMode() != LangOptions::FPC_On) + if (CGF.CGM.getCodeGenOpts().getFPContractMode() != CodeGenOptions::FPC_On) return 0; // We have a potentially fusable op. Look for a mul on one of the operands. |