[NFC][Clang][ASTTests] Use ASSERT instead of EXPECT for nullptr checks
authorMichael Spencer <bigcheesegs@gmail.com>
Thu, 5 Jan 2023 01:32:12 +0000 (17:32 -0800)
committerMichael Spencer <bigcheesegs@gmail.com>
Thu, 5 Jan 2023 01:33:12 +0000 (17:33 -0800)
commit22b65a329ac2621279ae211dd6a868198e68d149
tree388df6cf2bebc1571c79d83a03e73daab602ce77
parentf58b025354ee2d3bcd7ab2399a11429ec940c1e0
[NFC][Clang][ASTTests] Use ASSERT instead of EXPECT for nullptr checks

This avoids basically guaranteed crashes when the check fails.
clang/unittests/AST/DeclTest.cpp