Skip to content
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

Fix issue #1224 #1243

Merged
merged 9 commits into from
Aug 1, 2018
Merged

Conversation

cshung
Copy link
Contributor

@cshung cshung commented Jul 29, 2018

This is my first pull request on ILSpy.
@dgrunwald @mmusu3

@@ -660,7 +660,11 @@ ILInstruction PrepareCallTarget(IType expectedType, ILInstruction target, IType
if (target == null) {
return (new LdObj(new LdsFlda((IField)member), member.ReturnType), member.ReturnType);
} else {
return (new LdObj(new LdFlda(target, (IField)member), member.ReturnType), member.ReturnType);
if (member.DeclaringType.IsReferenceType.Value) {
Copy link
Member

@siegfriedpammer siegfriedpammer Jul 29, 2018

Choose a reason for hiding this comment

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

Please use member.DeclaringType.IsReferenceType != false, using Value without checking HasValue will lead to exceptions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks

@cshung cshung force-pushed the dev/andrewau/1224 branch from 18e8d75 to 9837933 Compare July 29, 2018 22:24
@cshung
Copy link
Contributor Author

cshung commented Jul 30, 2018

Debug configuration runs into a connectivity issue?

@cshung
Copy link
Contributor Author

cshung commented Jul 30, 2018

Thanks for getting the CI to pass. Is this change good for merge?

@cshung
Copy link
Contributor Author

cshung commented Jul 31, 2018

Hello?

@siegfriedpammer siegfriedpammer merged commit 4047c5c into icsharpcode:master Aug 1, 2018
@siegfriedpammer
Copy link
Member

Thank you for your contribution!

@cshung cshung deleted the dev/andrewau/1224 branch August 2, 2018 06:05
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