This is an archive of the discontinued LLVM Phabricator instance.

[MSVC Compat] Correctly handle finallys nested within finallys
ClosedPublic

Authored by majnemer on Feb 29 2016, 10:54 PM.

Details

Summary

We'd lose track of the parent CodeGenFunction, leading us to get
confused with regard to which function a nested finally belonged to.

Diff Detail

Repository
rL LLVM

Event Timeline

majnemer updated this revision to Diff 49455.Feb 29 2016, 10:54 PM
majnemer retitled this revision from to [MSVC Compat] Correctly handle finallys nested within finallys.
majnemer updated this object.
majnemer added reviewers: rnk, andrew.w.kaylor.
majnemer added a subscriber: cfe-commits.
rnk added inline comments.Mar 1 2016, 9:37 AM
lib/CodeGen/CGException.cpp
1680–1682 ↗(On Diff #49455)

Let's have a new field for this. We don't want most of the behavior controlled by CurCodeDecl in the rest of CodeGen.

majnemer updated this revision to Diff 49522.Mar 1 2016, 11:43 AM
  • Address Reid's review comments
rnk accepted this revision.Mar 1 2016, 11:45 AM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Mar 1 2016, 11:45 AM
This revision was automatically updated to reflect the committed changes.