summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/AttributeList.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-01-13 21:42:39 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-01-13 21:42:39 +0000
commit09e98ffa5b5c94f2ea394e0f6f8840eb8d7f1f03 (patch)
tree2218cd94f39226478239e47e64382a24109c3e38 /clang/lib/Sema/AttributeList.cpp
parent3fe6ed5aa0d7d4a99129ed6f4b37592b187b1787 (diff)
downloadbcm5719-llvm-09e98ffa5b5c94f2ea394e0f6f8840eb8d7f1f03.tar.gz
bcm5719-llvm-09e98ffa5b5c94f2ea394e0f6f8840eb8d7f1f03.zip
When determining the attribute's parsed kind, pay attention to the syntax used. This fixes bugs where an attribute has differing GNU and Declspec spellings, but they are treated as the same. Eg) __declspec(aligned) when it should be __attribute__((aligned)), and __attribute__((align)) when it should be __declspec(align).
llvm-svn: 199144
Diffstat (limited to 'clang/lib/Sema/AttributeList.cpp')
-rw-r--r--clang/lib/Sema/AttributeList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/AttributeList.cpp b/clang/lib/Sema/AttributeList.cpp
index 58a3e23c1b0..dbb31b64904 100644
--- a/clang/lib/Sema/AttributeList.cpp
+++ b/clang/lib/Sema/AttributeList.cpp
@@ -139,7 +139,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name,
FullName += "::";
FullName += AttrName;
- return ::getAttrKind(FullName);
+ return ::getAttrKind(FullName, SyntaxUsed);
}
unsigned AttributeList::getAttributeSpellingListIndex() const {
OpenPOWER on IntegriCloud