Skip to content

Commit

Permalink
[NFCI] DwarfEHPrepare: update DomTree in non-permissive mode, when pr…
Browse files Browse the repository at this point in the history
…esent

Being stricter will catch issues that would be just papered over
in permissive mode, and is likely faster.
  • Loading branch information
LebedevRI committed Jan 4, 2021
1 parent f67d3db commit b4f519b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/DwarfEHPrepare.cpp
Expand Up @@ -243,7 +243,7 @@ bool DwarfEHPrepare::InsertUnwindResumeCalls() {
new UnreachableInst(Ctx, UnwindBB);

if (DTU && RequireAndPreserveDomTree)
DTU->applyUpdatesPermissive(Updates);
DTU->applyUpdates(Updates);

return true;
}
Expand Down

0 comments on commit b4f519b

Please sign in to comment.