[PATCH] D150746: [CodeGen]Translating pointer arguments can require an address space cast
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 1 07:12:29 PDT 2023
yaxunl added inline comments.
================
Comment at: clang/lib/CodeGen/ItaniumCXXABI.cpp:1630-1632
+ LangAS AS = CGM.GetGlobalVarAddressSpace(nullptr);
+ QualType Q = Context.getAddrSpaceQualType(Context.VoidPtrTy, AS);
+ QualType T = Context.getPointerType(Q);
----------------
Does it worth extracting the code as Context.getVTTType() since it is used at three locations. Since VTT seems to be immutable, in case we want to put it in constant addr space in the future, it will make things easier.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150746/new/
https://reviews.llvm.org/D150746
More information about the cfe-commits
mailing list