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

Shivam Gupta via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 02:22:06 PDT 2026


================
@@ -682,6 +682,12 @@ class ScalarExprEmitter
     if (E->getCallReturnType(CGF.getContext())->isReferenceType())
       return EmitLoadOfLValue(E);
 
+    std::optional<CodeGenFunction::CGFPOptionsRAII> FPOptsRAII;
+    const FunctionDecl *FD = E->getDirectCallee();
+    bool IsBuiltin = FD && FD->getBuiltinID() != 0;
----------------
xgupta wrote:

Thanks for the explanation for test cases. I have updated the test cases and removed the conditional code for builtin.  

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


More information about the cfe-commits mailing list