[llvm] [GlobalISel] Diagnose inline assembly constraint lowering errors (PR #135782)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 03:17:46 PDT 2025


================
@@ -344,9 +355,8 @@ bool InlineAsmLowering::lowerInlineAsm(
 
         // Find a register that we can use.
         if (OpInfo.Regs.empty()) {
-          LLVM_DEBUG(dbgs()
-                     << "Couldn't allocate output register for constraint\n");
-          return false;
+          return reportInlineAsmConstraintError(
+              Call, OpInfo, "couldn't allocate output register for constraint");
----------------
arsenm wrote:

error messages should avoid contractions (unrelated separate fix)

https://github.com/llvm/llvm-project/pull/135782


More information about the llvm-commits mailing list