Skip to content

Commit 49e9c62

Browse files
committed
Update MachineBlockPlacement.cpp
1 parent 0b9d115 commit 49e9c62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/CodeGen/MachineBlockPlacement.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3345,6 +3345,9 @@ bool MachineBlockPlacement::runOnMachineFunction(MachineFunction &MF) {
33453345
if (MF.getFunction().doesDisableBlockPlacementPass())
33463346
return false;
33473347

3348+
if (MF.getFunction().hasSEH() || MF.getFunction().hasCXXSEH())
3349+
return false;
3350+
33483351
// Check for single-block functions and skip them.
33493352
if (std::next(MF.begin()) == MF.end())
33503353
return false;

0 commit comments

Comments
 (0)