[PATCH] D103465: [OpaquePtr] Track pointee types in Clang
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 9 05:51:58 PDT 2021
erichkeane added inline comments.
================
Comment at: clang/lib/CodeGen/Address.h:26
llvm::Value *Pointer;
+ llvm::Type *PointeeType;
CharUnits Alignment;
----------------
I think this will still end up being a problem when we try to look into the type for multi-dimension pointers. Should we have this just store the `QualType` of the value instead, so we can unpack it later? If we ever needed the `llvm::Type` of the Pointee, a `convertTypeForMem` is all that is standing in our way.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103465/new/
https://reviews.llvm.org/D103465
More information about the cfe-commits
mailing list