aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-10-15 08:26:25 +0000
committerGabor Greif <ggreif@gmail.com>2010-10-15 08:26:25 +0000
commitc5127edaec77915a173708c2460fda030c67edc6 (patch)
tree8db992cfc29bc5fa110d21a63d1595af018e9637
parentb9eb35ced8369c8c8479efc17712faaf34e16c56 (diff)
fix http://llvm.org/PR8371 in the straightforward way, also adding a comment
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116570 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/AttributeList.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/AttributeList.cpp b/lib/Sema/AttributeList.cpp
index c23e1ddfb0..89f59f9195 100644
--- a/lib/Sema/AttributeList.cpp
+++ b/lib/Sema/AttributeList.cpp
@@ -65,6 +65,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) {
.Case("final", AT_final)
.Case("cdecl", AT_cdecl)
.Case("const", AT_const)
+ .Case("__const", AT_const) // some GCC headers do contain this spelling
.Case("blocks", AT_blocks)
.Case("format", AT_format)
.Case("hiding", AT_hiding)