Skip to content

Use mono_mb_emit_op for CEE_LDOBJ to ensure wrapper data is added for… #1063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2018

Conversation

joncham
Copy link
Member

@joncham joncham commented Nov 1, 2018

… indirect load of a ref return value. (case 1096820)

The mono_mb_emit_op call caches the type data to be used later by method-to-ir

@joncham joncham self-assigned this Nov 1, 2018
@joncham joncham requested a review from joshpeterson November 1, 2018 21:01
@joshpeterson
Copy link

Should we upstream this? It looks like the same code might be here now: https://github.com/mono/mono/blob/226a836210c1fc5ed7fc9ddc2fbca538b6711308/mono/metadata/marshal-ilgen.c#L1458-L1463

@joncham
Copy link
Member Author

joncham commented Nov 2, 2018

Yes, working on adding a test and upstream PR.

… indirect load of a ref return value. (case 1096820)
@joncham joncham force-pushed the unity-master-ref-return-struct branch from 2ebd672 to 3898ae1 Compare November 2, 2018 03:41
@joncham
Copy link
Member Author

joncham commented Nov 2, 2018

Added test.

Upstream PR: mono#11514

@joncham joncham merged commit 5f030e5 into unity-master Nov 7, 2018
@joncham joncham deleted the unity-master-ref-return-struct branch November 7, 2018 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants