diff options
-rw-r--r-- | lib/CodeGen/DwarfEHPrepare.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp index 6a53e69337..873ddd20b8 100644 --- a/lib/CodeGen/DwarfEHPrepare.cpp +++ b/lib/CodeGen/DwarfEHPrepare.cpp @@ -532,13 +532,14 @@ bool DwarfEHPrepare::LowerUnwindsAndResumes() { if (isa<UnwindInst>(RI)) new UnreachableInst(RI->getContext(), RI); - // Nuke the resume instruction. - RI->eraseFromParent(); - if (isa<UnwindInst>(RI)) ++NumUnwindsLowered; else ++NumResumesLowered; + + // Nuke the resume instruction. + RI->eraseFromParent(); + Changed = true; } |