1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

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.

llvm-svn: 270260
This commit is contained in:
Krzysztof Parzyszek 2016-05-20 19:46:42 +00:00
parent 03d346febe
commit 5b8abb9534

View File

@ -443,7 +443,7 @@ unsigned RegScavenger::scavengeRegister(const TargetRegisterClass *RC,
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);