diff options
author | John McCall <rjmccall@apple.com> | 2012-05-22 21:28:12 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-05-22 21:28:12 +0000 |
commit | c052dbb2d8fe0e23e90d81236aab0f864f712b45 (patch) | |
tree | 5a99a2c13dbe2d2cabdd32b64b20b595d0c260d9 /lib/Sema/SemaType.cpp | |
parent | 6c20222da814df4cb1ef97681f0e1e8cb5a01b40 (diff) |
Recognize the MS inheritance attributes and turn them into attributes
on the RecordDecl. Persist the MS portability type attributes and
ignore them in Sema rather than the parser.
Patch by João Matos!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 13a72a5338..f795660d08 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -4028,6 +4028,13 @@ static void processTypeAttrs(TypeProcessingState &state, QualType &type, attr.setUsedAsTypeAttr(); break; + case AttributeList::AT_w64: + case AttributeList::AT_ptr32: + case AttributeList::AT_ptr64: + // FIXME: don't ignore these + attr.setUsedAsTypeAttr(); + break; + case AttributeList::AT_ns_returns_retained: if (!state.getSema().getLangOpts().ObjCAutoRefCount) break; |