================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to