Forgot to remove some output before committing last time. (Instruction fixups
don't actually overflow anywhere in the test suite so far, so I missed it).
To prevent the outliner from screaming "Overflow!" in the event that that
does happen, this commit removes that output.
llvm-svn: 298260
// TODO: We should really test what happens if an instruction overflows.
// 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) {
+ 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;