Skip to content

Commit 2219119

Browse files
authored
[MIR2Vec] Fix to skip tests in MIR2VecEmbeddingTestFixture (#164467)
Fixes test failure issues (caused by #162161) in Windows buildbots.
1 parent d4713ec commit 2219119

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/unittests/CodeGen/MIR2VecTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ class MIR2VecEmbeddingTestFixture : public MIR2VecVocabTestFixture {
255255

256256
void SetUp() override {
257257
MIR2VecVocabTestFixture::SetUp();
258+
// If base class setup was skipped (TII not initialized), skip derived setup
259+
if (!TII)
260+
GTEST_SKIP() << "Failed to get target instruction info in "
261+
"the base class setup; Skipping test";
258262

259263
// Create a dummy function for MachineFunction
260264
FunctionType *FT = FunctionType::get(Type::getVoidTy(*Ctx), false);

0 commit comments

Comments
 (0)