[PATCH] D104902: [OpaquePtr] Allow globals with opaque pointer value type

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 25 11:13:53 PDT 2021


dexonsmith added a comment.

In D104902#2841332 <https://reviews.llvm.org/D104902#2841332>, @dexonsmith wrote:

>> Do this by making opaque pointers a valid pointer element type, for which we implicitly create an opaque pointer (moving the logic from getPointerTo into PointerType::get).
>
> Is there a way to test this? Maybe with something like this?

(Ignore that first comment — somehow I missed the chnage to `opaque-ptr.ll`! Still interested in a verifier change for the invalid IR though...)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104902/new/

https://reviews.llvm.org/D104902



More information about the llvm-commits mailing list