Implement changes from Chris's feedback.
[oota-llvm.git] / lib / Target / XCore / XCoreRegisterInfo.cpp
index ffbace6db7fc051babbb232ecf08da9b57002a6f..9bf99ac0dad370e5bf4013e1a156d59c7edf677b 100644 (file)
@@ -144,11 +144,11 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
       
       if (!isU6 && !isImmU16(Amount)) {
         // FIX could emit multiple instructions in this case.
-        std::string msg;
-        raw_string_ostream Msg(msg);
-        Msg  << "eliminateCallFramePseudoInstr size too big: "
-             << Amount;
-        llvm_report_error(Msg.str());
+#ifndef NDEBUG
+        cerr << "eliminateCallFramePseudoInstr size too big: "
+             << Amount << "\n";
+#endif
+        llvm_unreachable();
       }
 
       MachineInstr *New;