Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Verification of Endfinally (also Endfault) #3640

Merged
jkotas merged 6 commits intodotnet:masterfrom
Dynatrace:EndFinally
May 17, 2017
Merged

Verification of Endfinally (also Endfault) #3640
jkotas merged 6 commits intodotnet:masterfrom
Dynatrace:EndFinally

Conversation

@gregkalapos
Copy link
Collaborator

Until this point we ignored the finally&fault blocks (that code was disabled). I also re-enabled that part, but this time without a for loop, since we can take advantage of the try and handler indexes directly on the BasicBlock

{
MarkBasicBlock(_basicBlocks[r.ILRegion.HandlerOffset]);
}
MarkBasicBlock(_basicBlocks[_exceptionRegions[_currentBasicBlock.TryIndex.Value].ILRegion.HandlerOffset]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be done inside StartImportingBasicBlock. We want to verify finally or fault block even if there is no "leave".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! We talked about it with @mmayr-at and it came up that this should be done somewhere else, but I wanted to go with the original code. Anyway... i will move it to StartImportingBasicBlock.

@jkotas jkotas merged commit 0166403 into dotnet:master May 17, 2017
@gregkalapos gregkalapos deleted the EndFinally branch May 18, 2017 08:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants