[clang] [NFC][Driver] Clean up RenderFloatingPointOptions() (PR #91017)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri May 3 14:39:03 PDT 2024
================
@@ -3225,11 +3204,10 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
if (!FPContract.empty())
CmdArgs.push_back(Args.MakeArgString("-ffp-contract=" + FPContract));
- if (!RoundingFPMath)
- CmdArgs.push_back(Args.MakeArgString("-fno-rounding-math"));
-
- if (RoundingFPMath && RoundingMathPresent)
----------------
andykaylor wrote:
Every place in the code that sets RoundingFPMath to true also sets RoundingMathPresent to true, so this variable was entirely redundant.
https://github.com/llvm/llvm-project/pull/91017
More information about the cfe-commits
mailing list