summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2017-03-20 16:25:04 +0000
committerJessica Paquette <jpaquette@apple.com>2017-03-20 16:25:04 +0000
commit02cbfb29265735f9c0d69ce10ea1281579a6a824 (patch)
tree18af27dcbfe182621931cc41fa332c3b4c672582
parent12883b1673731839303444ad04984cf81dab396c (diff)
downloadbcm5719-llvm-02cbfb29265735f9c0d69ce10ea1281579a6a824.tar.gz
bcm5719-llvm-02cbfb29265735f9c0d69ce10ea1281579a6a824.zip
[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. llvm-svn: 298263
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index 19d54904d4e..24fc7d3c8b0 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud