diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-13 23:05:14 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-13 23:05:14 +0000 |
commit | 15934f92c3b56aa8275d3d77d7b884088ff5d4a7 (patch) | |
tree | b3ef62bc00a3311bf53483d20f50be879cc5921d | |
parent | 9c0957069f3a92c5ee1e3da630ef360eca5b2061 (diff) |
Fix for PR 5181.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84051 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 23c83175eb..50ebb49e7d 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1246,10 +1246,13 @@ static void HandleFormatAttr(Decl *d, const AttributeList &Attr, Sema &S) { case 5: Supported = !memcmp(Format, "scanf", 5); break; case 6: Supported = !memcmp(Format, "printf", 6); break; case 7: Supported = !memcmp(Format, "printf0", 7) || - !memcmp(Format, "strfmon", 7); break; + !memcmp(Format, "strfmon", 7) || + !memcmp(Format, "cmn_err", 7); break; case 8: Supported = (is_strftime = !memcmp(Format, "strftime", 8)) || (is_NSString = !memcmp(Format, "NSString", 8)) || + !memcmp(Format, "vcmn_err", 8) || + !memcmp(Format, "zcmn_err", 8) || (is_CFString = !memcmp(Format, "CFString", 8)); break; } |