[llvm] r298263 - [Outliner] ACTUALLY remove the errs output

Jessica Paquette via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 09:25:04 PDT 2017


Author: paquette
Date: Mon Mar 20 11:25:04 2017
New Revision: 298263

URL: http://llvm.org/viewvc/llvm-project?rev=298263&view=rev
Log:
[Outliner] ACTUALLY remove the errs output

I don't know how to type. This fixes the last commit which would have made all
of the overflows legal, and kept the screaming.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp?rev=298263&r1=298262&r2=298263&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Mon Mar 20 11:25:04 2017
@@ -4349,7 +4349,7 @@ AArch64InstrInfo::getOutliningType(Machi
       // This is tricky to test with IR tests, but when the outliner is moved
       // to a MIR test, it really ought to be checked.
       if (Offset + 16 < MinOffset || Offset + 16 > MaxOffset)
-        errs() << "Overflow!\n";
+	return MachineOutlinerInstrType::Illegal;
 
       // It's in range, so we can outline it.
       return MachineOutlinerInstrType::Legal;




More information about the llvm-commits mailing list