aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--backend/lib/CodeGen/RegAllocFast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/lib/CodeGen/RegAllocFast.cpp b/backend/lib/CodeGen/RegAllocFast.cpp
index 73c3e1a..7fb1471 100644
--- a/backend/lib/CodeGen/RegAllocFast.cpp
+++ b/backend/lib/CodeGen/RegAllocFast.cpp
@@ -605,7 +605,7 @@ Expected<MachinePassResult> FastAllocatorPass::run(MachineFunction &Function,
FastAllocatorEngine Allocator(Function, Target, *Info, **Liveness);
auto Allocated = Allocator.run();
if (!Allocated) {
- return std::unexpected(regalloc_detail::withPrefix(
+ return std::unexpected(withErrorContext(
Allocated.error(), "FastAllocator diverged after a successful transaction preflight: "));
}
auto Reserved = regalloc_detail::reserveFunctionRegisters(Function, FunctionReserved);