[PATCH] D54862: [OpenCL] Add generic AS to 'this' pointer
Mikael Nilsson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 11 04:00:59 PST 2018
mikael marked an inline comment as done.
mikael added inline comments.
================
Comment at: lib/Sema/SemaType.cpp:5169
+TypeSourceInfo *Sema::GetTypeForDeclarator(Declarator &D, Scope *S,
+ const DeclContext *DC) {
// Determine the type of the declarator. Not all forms of declarator
----------------
Anastasia wrote:
> Rather than passing `DeclContext` you can get it from the `Declarator` using `getContext()` method.
Declarator::getContext() returns an enumeration DeclaratorContext which is not enough in this case.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54862/new/
https://reviews.llvm.org/D54862
More information about the cfe-commits
mailing list