diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2024-12-12 09:01:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 16:01:48 -0800 |
commit | ea632e1b34e1878b977f8adc406a89e91aa98b7e (patch) | |
tree | a6e50bd5fe024ea74d97be89c9180f5e4afa0a94 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | dd647e3e608ed0b2bac7c588d5859b80ef4a5976 (diff) | |
download | llvm-ea632e1b34e1878b977f8adc406a89e91aa98b7e.zip llvm-ea632e1b34e1878b977f8adc406a89e91aa98b7e.tar.gz llvm-ea632e1b34e1878b977f8adc406a89e91aa98b7e.tar.bz2 |
Reapply "DiagnosticInfo: Clean up usage of DiagnosticInfoInlineAsm" (#119575) (#119634)
This reverts commit 40986feda8b1437ed475b144d5b9a208b008782a.
Reapply with fix to prevent temporary Twine from going out of scope.
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 6babd5a..cd1e626 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -964,9 +964,10 @@ void RegAllocFastImpl::allocVirtReg(MachineInstr &MI, LiveReg &LR, // Nothing we can do: Report an error and keep going with an invalid // allocation. if (MI.isInlineAsm()) - MI.emitError("inline assembly requires more registers than available"); + MI.emitInlineAsmError( + "inline assembly requires more registers than available"); else - MI.emitError("ran out of registers during register allocation"); + MI.emitInlineAsmError("ran out of registers during register allocation"); LR.Error = true; LR.PhysReg = 0; |