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

Only do *&ex -> ex optimisation if there is no type punning involved #3662

Merged
merged 1 commit into from
Jun 13, 2014

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Jun 13, 2014

@yebblies
Copy link
Member

Auto-merge toggled on

yebblies added a commit that referenced this pull request Jun 13, 2014
Only do *&ex -> ex optimisation if there is no type punning involved
@yebblies yebblies merged commit ec3bfe0 into dlang:master Jun 13, 2014
@ibuclaw ibuclaw deleted the fix12900 branch June 13, 2014 22:50
dnadlinger added a commit to dnadlinger/ldc that referenced this pull request Jun 28, 2014
This is a back-port of dlang/dmd#3662
(commit 4da4da1), and fixes compilation of:
---
struct Foo { char[1] bar; }
bool checkBar(Foo* foo) { return true && *foo.bar.ptr; }
---
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