aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/MI
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-06-15 22:31:08 +0000
committerMatthias Braun <matze@braunis.de>2017-06-15 22:31:08 +0000
commit542b3ce0bd28cd736344649b17a3a35651b73392 (patch)
tree3f9a6f907913969e10d2fc9aff4fe78dc29382a4 /llvm/unittests/MI
parent93f986a7dc3d2dc8b0768ccfd245358257ad0c91 (diff)
downloadllvm-542b3ce0bd28cd736344649b17a3a35651b73392.zip
llvm-542b3ce0bd28cd736344649b17a3a35651b73392.tar.gz
llvm-542b3ce0bd28cd736344649b17a3a35651b73392.tar.bz2
UnitTests: Replace some if(x)report_fatal_error() with EXPECT_TRUE(!x)
llvm-svn: 305519
Diffstat (limited to 'llvm/unittests/MI')
-rw-r--r--llvm/unittests/MI/LiveIntervalTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/MI/LiveIntervalTest.cpp b/llvm/unittests/MI/LiveIntervalTest.cpp
index 7118a43..43dfa4a 100644
--- a/llvm/unittests/MI/LiveIntervalTest.cpp
+++ b/llvm/unittests/MI/LiveIntervalTest.cpp
@@ -151,8 +151,7 @@ body: |
std::unique_ptr<MIRParser> MIR;
std::unique_ptr<Module> M = parseMIR(Context, PM, MIR, *TM, MIRString,
"func");
- if (!M)
- report_fatal_error("Could not parse MIR code\n");
+ EXPECT_TRUE(M);
PM.add(new TestPass(T));