This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Adjust address space of operands in remaining builtin operators
ClosedPublic

Authored by Anastasia on Mar 14 2019, 8:36 AM.

Diff Detail

Repository
rC Clang

Event Timeline

Anastasia created this revision.Mar 14 2019, 8:36 AM
rjmccall accepted this revision.Mar 18 2019, 9:33 PM

This patch LGTM.

You might consider adding tests for weird cases like class types with conversion operators to reference types. To a certain extent that sort of thing is unimplementable because the space of address spaces is infinite, so we can't fall back on adding a candidate for every possible address space; but even if we don't plan on addressing it, we can test our current behavior to check that we don't do something unexpected (like crash or give a nonsensical diagnostic).

This revision is now accepted and ready to land.Mar 18 2019, 9:33 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2019, 9:49 AM
Herald added a subscriber: kristina. · View Herald Transcript

This patch LGTM.

You might consider adding tests for weird cases like class types with conversion operators to reference types. To a certain extent that sort of thing is unimplementable because the space of address spaces is infinite, so we can't fall back on adding a candidate for every possible address space; but even if we don't plan on addressing it, we can test our current behavior to check that we don't do something unexpected (like crash or give a nonsensical diagnostic).

Thanks for the suggestion. I will look into this!