[clang] [CIR] Add math and builtin intrinsics support (PR #175233)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 29 12:51:51 PST 2026
================
@@ -1663,6 +1794,12 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
return emitLibraryCall(*this, fd, e,
cgm.getBuiltinLibFunction(fd, builtinID));
+ // If this is a predefined lib function (e.g. malloc), emit the call
+ // using exactly the normal call path.
+ if (getContext().BuiltinInfo.isPredefinedLibFunction(builtinID))
----------------
andykaylor wrote:
Is this needed for the math builtins?
https://github.com/llvm/llvm-project/pull/175233
More information about the cfe-commits
mailing list