[llvm] 2219119 - [MIR2Vec] Fix to skip tests in MIR2VecEmbeddingTestFixture (#164467)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 21 10:56:15 PDT 2025
    
    
  
Author: S. VenkataKeerthy
Date: 2025-10-21T10:56:12-07:00
New Revision: 2219119edcbce63d650b7759102afe3cbb8709af
URL: https://github.com/llvm/llvm-project/commit/2219119edcbce63d650b7759102afe3cbb8709af
DIFF: https://github.com/llvm/llvm-project/commit/2219119edcbce63d650b7759102afe3cbb8709af.diff
LOG: [MIR2Vec] Fix to skip tests in MIR2VecEmbeddingTestFixture (#164467)
Fixes test failure issues (caused by #162161) in Windows buildbots.
Added: 
    
Modified: 
    llvm/unittests/CodeGen/MIR2VecTest.cpp
Removed: 
    
################################################################################
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);
        
    
    
More information about the llvm-commits
mailing list