From 61108a41f0023d0e521c05aa0815af6c6fccb291 Mon Sep 17 00:00:00 2001 From: Jessica Paquette Date: Mon, 20 Mar 2017 16:25:04 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298263 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AArch64/AArch64InstrInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/AArch64/AArch64InstrInfo.cpp b/lib/Target/AArch64/AArch64InstrInfo.cpp index 19d54904d4e..24fc7d3c8b0 100644 --- a/lib/Target/AArch64/AArch64InstrInfo.cpp +++ b/lib/Target/AArch64/AArch64InstrInfo.cpp @@ -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; -- 2.50.1