]> granicus.if.org Git - llvm/commitdiff
[Outliner] ACTUALLY remove the errs output
authorJessica Paquette <jpaquette@apple.com>
Mon, 20 Mar 2017 16:25:04 +0000 (16:25 +0000)
committerJessica Paquette <jpaquette@apple.com>
Mon, 20 Mar 2017 16:25:04 +0000 (16:25 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298263 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64InstrInfo.cpp

index 19d54904d4efec7511fabe11732df9096bd2f678..24fc7d3c8b0e2f73152327cb4558207dd4361da9 100644 (file)
@@ -4349,7 +4349,7 @@ AArch64InstrInfo::getOutliningType(MachineInstr &MI) const {
       // 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;