Author: Andy Kaylor Date: 2025-10-16T17:39:16-07:00 New Revision: 99f02ea177fefe8ae5dd8673965d8f2485f2eb33
URL: https://github.com/llvm/llvm-project/commit/99f02ea177fefe8ae5dd8673965d8f2485f2eb33 DIFF: https://github.com/llvm/llvm-project/commit/99f02ea177fefe8ae5dd8673965d8f2485f2eb33.diff LOG: [CIR][NFC] Improve the output for missing builtin calls (#163884) This improves the diagnostic emitted when `errorNYI` is called for missing builtin calls so that the builtin being called is displayed in the diagnostic. Added: Modified: clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp Removed: ################################################################################ diff --git a/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp b/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp index 4cfa91e09efb4..ea31871806bd7 100644 --- a/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp @@ -463,7 +463,9 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, return emitLibraryCall(*this, fd, e, cgm.getBuiltinLibFunction(fd, builtinID)); - cgm.errorNYI(e->getSourceRange(), "unimplemented builtin call"); + cgm.errorNYI(e->getSourceRange(), + std::string("unimplemented builtin call: ") + + getContext().BuiltinInfo.getName(builtinID)); return getUndefRValue(e->getType()); } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
