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
// 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;