Skip to content

Commit ce44d63

Browse files
authored
[GlobalISel][Test] Fix IRTranslatorBF16Test crash (llvm#188273)
Skip the test when the AArch64 target is unavailable.
1 parent ab903b4 commit ce44d63

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

llvm/unittests/CodeGen/GlobalISel/IRTranslatorBF16Test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ TEST_F(AArch64IRTranslatorTest, IRTranslateBfloat16) {
8787
)");
8888

8989
auto TM = createTargetMachine();
90+
if (!TM)
91+
GTEST_SKIP();
9092
M->setDataLayout(TM->createDataLayout());
9193

9294
TM->setGlobalISel(true);

0 commit comments

Comments
 (0)