This is an archive of the discontinued LLVM Phabricator instance.

[OpaquePtr] Support opaque constant expression GEP
ClosedPublic

Authored by nikic on Jun 21 2021, 9:41 AM.

Details

Summary

Adjust assertions to use isOpaqueOrPointeeTypeMatches() and make it return an opaque pointer result for opaque base pointer. We also need to enumerate the element type, as it is no longer implicitly enumerated through the pointer type.

Diff Detail

Event Timeline

nikic created this revision.Jun 21 2021, 9:41 AM
nikic requested review of this revision.Jun 21 2021, 9:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2021, 9:41 AM
aeubanks accepted this revision.Jun 21 2021, 9:50 AM

lgtm, thanks!

This revision is now accepted and ready to land.Jun 21 2021, 9:50 AM
This revision was landed with ongoing or failed builds.Jun 21 2021, 11:09 AM
This revision was automatically updated to reflect the committed changes.