Skip to content

Conversation

@svkeerthy
Copy link
Contributor

Fixes test failure issues (caused by #162161) in Windows buildbots.

@svkeerthy svkeerthy requested a review from mtrofin October 21, 2025 17:51
@llvmbot llvmbot added the mlgo label Oct 21, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 21, 2025

@llvm/pr-subscribers-mlgo

Author: S. VenkataKeerthy (svkeerthy)

Changes

Fixes test failure issues (caused by #162161) in Windows buildbots.


Full diff: https://github.com/llvm/llvm-project/pull/164467.diff

1 Files Affected:

  • (modified) llvm/unittests/CodeGen/MIR2VecTest.cpp (+4)
diff --git a/llvm/unittests/CodeGen/MIR2VecTest.cpp b/llvm/unittests/CodeGen/MIR2VecTest.cpp
index 8cd9d5ac9f6be..8710d6b45969a 100644
--- a/llvm/unittests/CodeGen/MIR2VecTest.cpp
+++ b/llvm/unittests/CodeGen/MIR2VecTest.cpp
@@ -255,6 +255,10 @@ class MIR2VecEmbeddingTestFixture : public MIR2VecVocabTestFixture {
 
   void SetUp() override {
     MIR2VecVocabTestFixture::SetUp();
+    // If base class setup was skipped (TII not initialized), skip derived setup
+    if (!TII)
+      GTEST_SKIP() << "Failed to get target instruction info in "
+                      "the base class setup; Skipping test";
 
     // Create a dummy function for MachineFunction
     FunctionType *FT = FunctionType::get(Type::getVoidTy(*Ctx), false);

@svkeerthy svkeerthy merged commit 2219119 into main Oct 21, 2025
4 of 5 checks passed
@svkeerthy svkeerthy deleted the users/svkeerthy/10-21-mir2vec-tests-fix branch October 21, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants