[clang] [CodeGen][CIR] Split out Backend Diags to utils, impl CIR error-attr (PR #225966)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 29 13:51:50 PDT 2026
================
@@ -1404,6 +1404,13 @@ RValue CIRGenFunction::emitCall(const CIRGenFunctionInfo &funcInfo,
if (callOp)
*callOp = theCall;
+ // If we have the error-attr we need the source location info so that the
+ // backend diagnostics pick it up.
+ if (calleeDecl && calleeDecl->hasAttr<ErrorAttr>())
----------------
andykaylor wrote:
Should this also be checking `getCodeGenOpts().ShowInliningChain`?
https://github.com/llvm/llvm-project/pull/225966
More information about the cfe-commits
mailing list