================
@@ -1468,6 +1483,8 @@ 
CIRGenFunction::CIRGenFPOptionsRAII::~CIRGenFPOptionsRAII() {
   cgf.curFPFeatures = oldFPFeatures;
   cgf.builder.setDefaultConstrainedExcept(oldExcept);
   cgf.builder.setDefaultConstrainedRounding(oldRounding);
+  if (restoredFastMathFlags)
+    cgf.builder.setFastMathFlags(oldFastMathFlags);
----------------
RiverDave wrote:

Great suggestion, I've added these on: clang/test/CIR/CodeGen/fp-contract.c

https://github.com/llvm/llvm-project/pull/226334
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to