[PATCH] D97703: [AsmParser][SystemZ][z/OS] Introducing HLASM Comment Syntax
Anirudh Prasad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 10 10:23:03 PST 2021
anirudhp marked 2 inline comments as done.
anirudhp added inline comments.
================
Comment at: llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp:69
+ TheTarget = getTarget(TripleName);
+ EXPECT_NE(TheTarget, nullptr);
+
----------------
scott.linder wrote:
> I think these should be `ASSERT_NE`, because the rest of the test relies on this
I do see your point, because if the returned pointers are null, it doesn't make sense to run the rest of the test.
In terms of the ASSERT_* macros, I don't believe you can use them in a constructor. I could create a separate function where these are checked and call this for each individual test fixture.
But looking at some of the other tests that currently create an AsmParser, MCAsmInfo instances, either the returned pointer isn't checked, or its checked using the EXPECT_* macro. So I'm leaning towards just keeping it like this (for now anyway).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97703/new/
https://reviews.llvm.org/D97703
More information about the llvm-commits
mailing list