summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-05-20 19:46:42 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-05-20 19:46:42 +0000
commitccf5ee0b8f4c5ba88500a91ac2e4cdcf046299d5 (patch)
tree99daea193c2475d983e0d733ebdbcc79fb1e09c9 /llvm/lib
parent858d1df246e914a715622aea11966a12ed48abb3 (diff)
downloadbcm5719-llvm-ccf5ee0b8f4c5ba88500a91ac2e4cdcf046299d5.tar.gz
bcm5719-llvm-ccf5ee0b8f4c5ba88500a91ac2e4cdcf046299d5.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/RegisterScavenging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterScavenging.cpp b/llvm/lib/CodeGen/RegisterScavenging.cpp
index 4017f88f4ef..3cec442b878 100644
--- a/llvm/lib/CodeGen/RegisterScavenging.cpp
+++ b/llvm/lib/CodeGen/RegisterScavenging.cpp
@@ -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);
OpenPOWER on IntegriCloud