diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-14 08:12:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-14 08:12:47 +0000 |
commit | d35fd5db935260e4b6a5632a928ec23460f716e3 (patch) | |
tree | cf9f86f51086ac846b23b6358a4732436695dbcf /lib | |
parent | 0db29ece81d360dcefbe912339c34abe5917f6a9 (diff) |
just ignore hte format_arg attribute for now, it doesn't have any semantic implications.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Parse/AttributeList.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Parse/AttributeList.cpp b/lib/Parse/AttributeList.cpp index 06cd67abe5..dcd32dcddf 100644 --- a/lib/Parse/AttributeList.cpp +++ b/lib/Parse/AttributeList.cpp @@ -64,7 +64,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { break; case 6: if (!memcmp(Str, "packed", 6)) return AT_packed; - if (!memcmp(Str, "malloc", 6)) return IgnoredAttribute; + if (!memcmp(Str, "malloc", 6)) return IgnoredAttribute; // FIXME: noalias. if (!memcmp(Str, "format", 6)) return AT_format; if (!memcmp(Str, "unused", 6)) return AT_unused; if (!memcmp(Str, "blocks", 6)) return AT_blocks; @@ -91,12 +91,14 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { case 9: if (!memcmp(Str, "dllimport", 9)) return AT_dllimport; if (!memcmp(Str, "dllexport", 9)) return AT_dllexport; - if (!memcmp(Str, "may_alias", 9)) return IgnoredAttribute; + if (!memcmp(Str, "may_alias", 9)) return IgnoredAttribute; // FIXME: TBAA break; case 10: if (!memcmp(Str, "deprecated", 10)) return AT_deprecated; if (!memcmp(Str, "visibility", 10)) return AT_visibility; if (!memcmp(Str, "destructor", 10)) return AT_destructor; + if (!memcmp(Str, "format_arg", 10)) + return IgnoredAttribute; // FIXME: printf format string checking. break; case 11: if (!memcmp(Str, "vector_size", 11)) return AT_vector_size; |