[clang] Don't emit int TBAA metadata on more complex FP math libcalls. (PR #107598)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 13 11:51:28 PDT 2024


================
@@ -699,9 +713,12 @@ static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *FD,
     bool ConstWithoutErrnoAndExceptions =
         Context.BuiltinInfo.isConstWithoutErrnoAndExceptions(BuiltinID);
     // Restrict to target with errno, for example, MacOS doesn't set errno.
-    // TODO: Support builtin function with complex type returned, eg: cacosh
+    bool CallWithPointerArgsOrPointerReturnType =
+        Call.isScalar() && Call.getScalarVal() &&
+        hasPointerArgsOrPointerReturnType(Call.getScalarVal());
----------------
arsenm wrote:

Predicate function called in the if? 

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


More information about the cfe-commits mailing list