Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Add missing case to fgSplitBlock #306

Merged
merged 1 commit into from
Mar 11, 2015
Merged

Add missing case to fgSplitBlock #306

merged 1 commit into from
Mar 11, 2015

Conversation

JosephTremoulet
Copy link
Contributor

Handle the case that a block has no terminator but does have one or more
instructions after the split point. This can happen when inserting a null
check during the post-processing of a newobj (which generates the call and
then rewinds the insert point to do the post-processing which inserts the
null check) in a block that ends with a return (and thus doesn't get a
terminator in the first pass).

Verified no IR diffs.
Needed to unblock #257.

Handle the case that a block has no terminator but does have one or more
instructions after the split point.  This can happen when inserting a null
check during the post-processing of a newobj (which generates the call and
then rewinds the insert point to do the post-processing which inserts the
null check) in a block that ends with a return (and thus doesn't get a
terminator in the first pass).
@JosephTremoulet
Copy link
Contributor Author

@erozenfeld PTAL

@erozenfeld
Copy link
Member

LGTM

@JosephTremoulet
Copy link
Contributor Author

The CI failures look like the ones fixed in #304, so I'm going to go ahead and merge this.

JosephTremoulet added a commit that referenced this pull request Mar 11, 2015
@JosephTremoulet JosephTremoulet merged commit 67cf2d5 into dotnet:master Mar 11, 2015
@JosephTremoulet JosephTremoulet deleted the SplitDegenerate branch March 11, 2015 21:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants