From b4f519bddda853443405d21728154c481837e18b Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Mon, 4 Jan 2021 16:42:13 +0300 Subject: [PATCH] [NFCI] DwarfEHPrepare: update DomTree in non-permissive mode, when present Being stricter will catch issues that would be just papered over in permissive mode, and is likely faster. --- llvm/lib/CodeGen/DwarfEHPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/DwarfEHPrepare.cpp b/llvm/lib/CodeGen/DwarfEHPrepare.cpp index c1b764214546d4..97e0162f35a16d 100644 --- a/llvm/lib/CodeGen/DwarfEHPrepare.cpp +++ b/llvm/lib/CodeGen/DwarfEHPrepare.cpp @@ -243,7 +243,7 @@ bool DwarfEHPrepare::InsertUnwindResumeCalls() { new UnreachableInst(Ctx, UnwindBB); if (DTU && RequireAndPreserveDomTree) - DTU->applyUpdatesPermissive(Updates); + DTU->applyUpdates(Updates); return true; }