[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.

llvm-svn: 298263

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

index 19d5490..24fc7d3 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;