[PATCH] D54862: [OpenCL] Add generic AS to 'this' pointer

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 12 09:22:23 PST 2018


riccibruno added inline comments.


================
Comment at: include/clang/AST/Type.h:3692
           FunctionType::ExceptionType, Expr *, FunctionDecl *,
-          FunctionType::ExtParameterInfo> {
   friend class ASTContext; // ASTContext creates these.
----------------
You can use `FunctionType::FunctionTypeExtraBitfields`
to store the qualifiers. It was designed to store extra data.
No need to add yet another trailing object.


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