Fix for PR 5181.
llvm-svn: 84051
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 23c8317..50ebb49 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1246,10 +1246,13 @@
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;
}