[PATCH] D54862: [OpenCL] Add generic AS to 'this' pointer
Bevin Hansson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 17 07:46:04 PST 2018
ebevhan added inline comments.
================
Comment at: lib/CodeGen/CGCall.cpp:77
+ if (MD)
+ RecTy = Context.getAddrSpaceQualType(RecTy, MD->getType().getAddressSpace());
return Context.getPointerType(CanQualType::CreateUnsafe(RecTy));
----------------
I'm a bit late to the party, but shouldn't this be `MD->getTypeQualifiers().getAddressSpace()`?
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54862/new/
https://reviews.llvm.org/D54862
More information about the cfe-commits
mailing list