[llvm] r270260 - Use report_fatal_error after all
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri May 20 12:46:42 PDT 2016
Author: kparzysz
Date: Fri May 20 14:46:42 2016
New Revision: 270260
URL: http://llvm.org/viewvc/llvm-project?rev=270260&view=rev
Log:
Use report_fatal_error after all
Depending on the compiler used to build LLVM, llvm_unreachable can either
expand to a call to abort(), or to a __builtin_unreachable. The latter
does not have a predictable behavior at runtime.
Modified:
llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterScavenging.cpp?rev=270260&r1=270259&r2=270260&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterScavenging.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterScavenging.cpp Fri May 20 14:46:42 2016
@@ -443,7 +443,7 @@ unsigned RegScavenger::scavengeRegister(
std::string Msg = std::string("Error while trying to spill ") +
TRI->getName(SReg) + " from class " + TRI->getRegClassName(RC) +
": Cannot scavenge register without an emergency spill slot!";
- llvm_unreachable(Msg.c_str());
+ report_fatal_error(Msg.c_str());
}
TII->storeRegToStackSlot(*MBB, I, SReg, true, Scavenged[SI].FrameIndex,
RC, TRI);
More information about the llvm-commits
mailing list