llvm.org GIT mirror llvm / f9841d4
Disable some IR death tests when SEH is available They hang for me locally. I suspect that there is a use-after-free when attempting to destroy an LLVMContext after asserting from the middle of metadata tracking. It doesn't seem worth debugging it further. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310660 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 2 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
24652465 DistinctMDOperandPlaceholder(7).replaceUseWith(MDTuple::get(Context, None));
24662466 }
24672467
2468 #ifndef NDEBUG
2469 #ifdef GTEST_HAS_DEATH_TEST
2468 // Test various assertions in metadata tracking. Don't run these tests if gtest
2469 // will use SEH to recover from them. Two of these tests get halfway through
2470 // inserting metadata into DenseMaps for tracking purposes, and then they
2471 // assert, and we attempt to destroy an LLVMContext with broken invariants,
2472 // leading to infinite loops.
2473 #if defined(GTEST_HAS_DEATH_TEST) && !defined(NDEBUG) && !defined(GTEST_HAS_SEH)
24702474 TEST_F(DistinctMDOperandPlaceholderTest, MetadataAsValue) {
24712475 // This shouldn't crash.
24722476 DistinctMDOperandPlaceholder PH(7);
25082512 }
25092513 }
25102514 #endif
2511 #endif
25122515
25132516 } // end namespace