@@ -383,30 +383,6 @@ TEST(MachineInstrExtraInfo, RemoveExtraInfo) {
383
383
ASSERT_FALSE (MI->getHeapAllocMarker ());
384
384
}
385
385
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.
389
- TEST (MachineInstrClone, CopyCallSiteInfo) {
390
- LLVMContext Ctx;
391
- Module Mod (" Module" , Ctx);
392
- auto MF = createMachineFunction (Ctx, Mod);
393
- auto MBB = MF->CreateMachineBasicBlock ();
394
- auto MII = MBB->begin ();
395
-
396
- MCInstrDesc MCID = {0 , 0 , 0 , 0 , 0 , (1ULL << MCID::Call),
397
- 0 , nullptr , nullptr , nullptr };
398
-
399
- MachineFunction::CallSiteInfo CSInfo;
400
- auto MI = MF->CreateMachineInstr (MCID, DebugLoc ());
401
- ASSERT_TRUE (MI->isCandidateForCallSiteEntry ());
402
- MBB->insert (MII, MI);
403
- MF->addCallArgsForwardingRegs (MI, std::move (CSInfo));
404
- EXPECT_EQ (MF->getCallSitesInfo ().size (), 1u );
405
- MF->CloneMachineInstrBundle (*MBB, MBB->end (), *MI);
406
- EXPECT_EQ (MF->getCallSitesInfo ().size (), 2u );
407
- }
408
- #endif
409
-
410
386
static_assert (is_trivially_copyable<MCOperand>::value, " trivially copyable" );
411
387
412
388
} // end namespace
0 commit comments