diff options
author | Stephen Canon <scanon@apple.com> | 2015-11-04 15:25:38 +0000 |
---|---|---|
committer | Stephen Canon <scanon@apple.com> | 2015-11-04 15:25:38 +0000 |
commit | 74f9c1a7aa696ce9feb419970fc763d2e88b980c (patch) | |
tree | d5b24e64072e8d66bae1096f77a9a82d08740e19 | |
parent | a1186b828ffb1b796b067a3d46fcc8e827006a5f (diff) | |
download | bcm5719-llvm-74f9c1a7aa696ce9feb419970fc763d2e88b980c.tar.gz bcm5719-llvm-74f9c1a7aa696ce9feb419970fc763d2e88b980c.zip |
Allow compound assignment expressions to be contracted when licensed by the language or pragma.
llvm-svn: 252050
-rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 602ce4bf5ef..16d220f966b 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -2116,7 +2116,7 @@ LValue ScalarExprEmitter::EmitCompoundAssignLValue( OpInfo.RHS = Visit(E->getRHS()); OpInfo.Ty = E->getComputationResultType(); OpInfo.Opcode = E->getOpcode(); - OpInfo.FPContractable = false; + OpInfo.FPContractable = E->isFPContractable(); OpInfo.E = E; // Load/convert the LHS. LValue LHSLV = EmitCheckedLValue(E->getLHS(), CodeGenFunction::TCK_Store); |