Skip to content

Commit 9bc4a68

Browse files
committed
[CIR][NFC] Improve the output for missing builtin calls
This improves the diagnostic emitted when `errorNYI` is called for missing builtin calls so that the builtin being called is displayed in the diagnostic.
1 parent 01c0cb9 commit 9bc4a68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,9 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
463463
return emitLibraryCall(*this, fd, e,
464464
cgm.getBuiltinLibFunction(fd, builtinID));
465465

466-
cgm.errorNYI(e->getSourceRange(), "unimplemented builtin call");
466+
cgm.errorNYI(e->getSourceRange(),
467+
std::string("unimplemented builtin call: ") +
468+
getContext().BuiltinInfo.getName(builtinID));
467469
return getUndefRValue(e->getType());
468470
}
469471

0 commit comments

Comments
 (0)