Skip to content

Commit 99f02ea

Browse files
authored
[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.
1 parent 4d4088e commit 99f02ea

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)