diff options
author | Craig Topper <craig.topper@intel.com> | 2018-09-30 23:43:30 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-09-30 23:43:30 +0000 |
commit | 1d1dca6a6f9a2815eeb4676df16f4478965d4610 (patch) | |
tree | 392b3747d7b35de42bea9b29343f3a9366dca06b /llvm/lib/Target/X86/X86InstrInfo.cpp | |
parent | 71d781c4344c644622539e65ae1a3693d01c4ebe (diff) | |
download | bcm5719-llvm-1d1dca6a6f9a2815eeb4676df16f4478965d4610.tar.gz bcm5719-llvm-1d1dca6a6f9a2815eeb4676df16f4478965d4610.zip |
[X86] Change an llvm_unreachable to a report_fatal_error so the optimizer will stop making us reach the other report_fatal_error in this function.
There's a conditional report_fatal_error just above this llvm_unreachable. The optimizer when seeing the unreachable removes the conditional and just makes any other error trigger the existing report_fatal_error.
llvm-svn: 343428
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 415ef7d8391..f69f6eff4d2 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -3119,7 +3119,7 @@ void X86InstrInfo::copyPhysReg(MachineBasicBlock &MBB, LLVM_DEBUG(dbgs() << "Cannot copy " << RI.getName(SrcReg) << " to " << RI.getName(DestReg) << '\n'); - llvm_unreachable("Cannot emit physreg copy instruction"); + report_fatal_error("Cannot emit physreg copy instruction"); } bool X86InstrInfo::isCopyInstrImpl(const MachineInstr &MI, |