Skip to content

Commit 381bdd5

Browse files
committed
unittest: Disable MachineInstrClone.CopyCallSiteInfo on Windows
A bot error (http://45.33.8.238/win/12463/step_11.txt) reports 'unknown file: error: SEH exception with code 0x3221225477 thrown in the test body', but I don't know what causes this. It looks like this has come up before, but afaict the root causes could be different: https://reviews.llvm.org/rL329195, and in http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20180910/587425.html I tried testing locally with UBSan, but that didn't uncover anything.
1 parent 969b91a commit 381bdd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/unittests/CodeGen/MachineInstrTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ TEST(MachineInstrExtraInfo, RemoveExtraInfo) {
383383
ASSERT_FALSE(MI->getHeapAllocMarker());
384384
}
385385

386+
#ifndef _WIN32
387+
// See discussion on https://reviews.llvm.org/D77685, this is throwing a SEH
388+
// exception when run on a Windows bot despite being UBSan-clean.
386389
TEST(MachineInstrClone, CopyCallSiteInfo) {
387390
LLVMContext Ctx;
388391
Module Mod("Module", Ctx);
@@ -402,6 +405,7 @@ TEST(MachineInstrClone, CopyCallSiteInfo) {
402405
MF->CloneMachineInstrBundle(*MBB, MBB->end(), *MI);
403406
EXPECT_EQ(MF->getCallSitesInfo().size(), 2u);
404407
}
408+
#endif
405409

406410
static_assert(is_trivially_copyable<MCOperand>::value, "trivially copyable");
407411

0 commit comments

Comments
 (0)