[clang] [Clang][CodeGen] Respect FP pragma options for fneg and calls (PR #212141)

Shivam Gupta via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 4 01:03:19 PDT 2026


================
@@ -682,6 +682,12 @@ class ScalarExprEmitter
     if (E->getCallReturnType(CGF.getContext())->isReferenceType())
       return EmitLoadOfLValue(E);
 
+    std::optional<CodeGenFunction::CGFPOptionsRAII> FPOptsRAII;
----------------
xgupta wrote:

We need optional because of builtin FD for which case we should not initialize FPOptsRAII. Why builtin condition is needed mention below.

https://github.com/llvm/llvm-project/pull/212141


More information about the cfe-commits mailing list