[llvm-commits] [llvm] r170822 - /llvm/trunk/lib/Target/Mips/Mips16RegisterInfo.cpp
Reed Kotler
rkotler at mips.com
Thu Dec 20 16:44:59 PST 2012
Author: rkotler
Date: Thu Dec 20 18:44:59 2012
New Revision: 170822
URL: http://llvm.org/viewvc/llvm-project?rev=170822&view=rev
Log:
Call llvm_unreachable instead of assert.
Modified:
llvm/trunk/lib/Target/Mips/Mips16RegisterInfo.cpp
Modified: llvm/trunk/lib/Target/Mips/Mips16RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/Mips16RegisterInfo.cpp?rev=170822&r1=170821&r2=170822&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/Mips16RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/Mips16RegisterInfo.cpp Thu Dec 20 18:44:59 2012
@@ -148,7 +148,7 @@
if (!MI.isDebugValue() && ( ((FrameReg != Mips::SP) && !isInt<16>(Offset)) ||
((FrameReg == Mips::SP) && !isInt<15>(Offset)) )) {
- assert(false && "frame offset does not fit in instruction");
+ llvm_unreachable("frame offset does not fit in instruction");
}
MI.getOperand(OpNo).ChangeToRegister(FrameReg, false);
MI.getOperand(OpNo + 1).ChangeToImmediate(Offset);
More information about the llvm-commits
mailing list