[libcxxabi] [test] Avoid mingw warnings about missing a return statement
authorMartin Storsjö <martin@martin.st>
Sat, 1 Apr 2023 22:45:07 +0000 (01:45 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 19 Apr 2023 10:35:37 +0000 (13:35 +0300)
commitf3ee6695e0f6232fee96e2e6ccd96e85ed682998
tree71dbe17daa7c15ebb2553327b4bb260409d2eddf
parent692518d04b2d170b1ae10c50843e7c497c4a9922
[libcxxabi] [test] Avoid mingw warnings about missing a return statement

With current versions of mingw-w64 headers, code following
assert(false) isn't considered unreachable - thus add a dummy
"return nullptr;", to avoid warnings (treated as errors) for a
missing return statement.

The root cause does get fixed further upstream in mingw-w64 in
https://github.com/mingw-w64/mingw-w64/commit/1690994f515910a31b9fb7c7bd3a52d4ba987abe
though.

Differential Revision: https://reviews.llvm.org/D147860
libcxxabi/test/cxa_vec_new_overflow_PR41395.pass.cpp