[llvm] r305519 - UnitTests: Replace some if(x)report_fatal_error() with EXPECT_TRUE(!x)

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 15:52:34 PDT 2017


> On Jun 15, 2017, at 3:46 PM, Matthias Braun via llvm-commits <llvm-commits at lists.llvm.org> wrote:
> 
> Indeed. Unfortunately I am running into problems now as ASSERT_TRUE appears to expand into something ending in "return;" in the error case which only works in void functions. Still looking around what the correct gtest idiom is.
I moved the one problematic ASSERTs into a void function.

- Matthias



More information about the llvm-commits mailing list