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/RegAllocBase.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/RegAllocBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBase.cpp b/llvm/lib/CodeGen/RegAllocBase.cpp index 449033d..e9fcff5 100644 --- a/llvm/lib/CodeGen/RegAllocBase.cpp +++ b/llvm/lib/CodeGen/RegAllocBase.cpp @@ -127,7 +127,8 @@ void RegAllocBase::allocatePhysRegs() { if (AllocOrder.empty()) report_fatal_error("no registers from class available to allocate"); else if (MI && MI->isInlineAsm()) { - MI->emitError("inline assembly requires more registers than available"); + MI->emitInlineAsmError( + "inline assembly requires more registers than available"); } else if (MI) { LLVMContext &Context = MI->getParent()->getParent()->getFunction().getContext(); |