From 542b3ce0bd28cd736344649b17a3a35651b73392 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 15 Jun 2017 22:31:08 +0000 Subject: UnitTests: Replace some if(x)report_fatal_error() with EXPECT_TRUE(!x) llvm-svn: 305519 --- llvm/unittests/MI/LiveIntervalTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/unittests/MI') 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 MIR; std::unique_ptr 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)); -- cgit v1.1