Fix test failure introduced in r187271 by enabling pipefail.

llvm-svn: 187381
This commit is contained in:
Rui Ueyama 2013-07-29 21:50:33 +00:00
parent cb87e35ed6
commit 5b274f3414
2 changed files with 4 additions and 3 deletions

View File

@ -433,7 +433,7 @@ void showCycleDetectedError(AtomToAtomT &followOnNexts,
}
atom = followOnNexts[atom];
} while (atom != start);
llvm_unreachable("Cycle detected");
llvm::report_fatal_error("Cycle detected");
}
/// Exit if there's a cycle in a followon chain reachable from the

View File

@ -1,6 +1,7 @@
# REQUIRES: debug
# RUN: lld -core --add-pass layout -mllvm -debug-only=LayoutPass %s 2>&1 \
# RUN: | FileCheck %s -check-prefix=CHECK
# RUN: not lld -core --add-pass layout -mllvm -debug-only=LayoutPass \
# RUN: %s 2> %t.err
# RUN: FileCheck %s -check-prefix=CHECK < %t.err
---
defined-atoms: