Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix issues with early dumps of multi-reg-returning calls. #12843

Merged
merged 3 commits into from
Jul 18, 2017

Conversation

pgavlin
Copy link

@pgavlin pgavlin commented Jul 15, 2017

The tree dump code was calling GetReturnRegCount before the return type
descriptor was initialized, which lead to an assert. This change introduces
a new debug-only method that simply returns 0 if the return type desc
has not been initialized.

The tree dump code was calling `GetReturnRegCount` before the return type
descriptor was initialized, which lead to an assert. This change introduces
a new debug-only method that simply returns `0` if the return type desc
has not been initialized.
@pgavlin
Copy link
Author

pgavlin commented Jul 15, 2017

@BruceForstall @dotnet/jit-contrib PTAL

Copy link
Member

@BruceForstall BruceForstall left a comment

Choose a reason for hiding this comment

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

One nit

@@ -3171,6 +3171,13 @@ struct ReturnTypeDesc
#endif
}

#ifdef DEBUG
unsigned TryGetReturnRegCount() const
Copy link
Member

Choose a reason for hiding this comment

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

It would be useful to have a comment here to explain why we need this.

@pgavlin pgavlin merged commit d992581 into dotnet:master Jul 18, 2017
@pgavlin pgavlin deleted the FixEarlyMultiRegCallDumps branch July 18, 2017 14:25
@karelz karelz modified the milestone: 2.1.0 Aug 28, 2017
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.

4 participants