lower array equals only if it needs code gen#14981
lower array equals only if it needs code gen#14981WalterBright wants to merge 2 commits intodlang:masterfrom
Conversation
|
Thanks for your pull request, @WalterBright! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#14981" |
|
Fixing this is blocked by https://issues.dlang.org/show_bug.cgi?id=23771 |
|
I have rebased to latest master and fixed the failing tests. It turns out we only needed to fix the failing error message. |
|
This cannot be pulled unless #11212 is reverted (cc @kinke ). Prior to #11212 , before lowering, the compiler would do some type checks to make sure that the comparison may be performed (and output errors in case it was not possible). The checks were duplicated in the hook, so the PR made sense because the hook would get lowered regardless if the scope needs codegen or not. However, this PR makes it so that the lowering is performed only in codegen'ed scopes so for situations such as |
|
The 3 options we have seem to be:
|
|
I don't think the revert is a real option, unless you want to re-add Adding a |
|
Closing, as this is not the right approach. |
No description provided.