[PATCH] D51229: [Sema/Attribute] Make types declared with address_space an AttributedType

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 24 16:00:10 PDT 2018


rsmith added inline comments.


================
Comment at: lib/Sema/SemaType.cpp:5816
+    if (!T.isNull()) {
+      if (!T->getAs<DependentAddressSpaceType>()) {
+        ASTContext &Ctx = S.Context;
----------------
We should also create the AttributedType to track the source syntax in the dependent case. If we don't, the AttributedType will be missing after template instantiation.


Repository:
  rC Clang

https://reviews.llvm.org/D51229





More information about the cfe-commits mailing list