summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/FormatString.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-03-15 21:22:27 +0000
committerTed Kremenek <kremenek@apple.com>2012-03-15 21:22:27 +0000
commitc08c475fe00137ae2fdbc271990d0ad3dceb3af0 (patch)
treecf1175017d46b62eab390b073ecced059688facf /clang/lib/Analysis/FormatString.cpp
parentc564440f15702dd0fc31f31ae870fe2ae5fcd5ef (diff)
downloadbcm5719-llvm-c08c475fe00137ae2fdbc271990d0ad3dceb3af0.tar.gz
bcm5719-llvm-c08c475fe00137ae2fdbc271990d0ad3dceb3af0.zip
Support '%p' format specifier with block pointers.
llvm-svn: 152839
Diffstat (limited to 'clang/lib/Analysis/FormatString.cpp')
-rw-r--r--clang/lib/Analysis/FormatString.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/FormatString.cpp b/clang/lib/Analysis/FormatString.cpp
index dd2f2406d46..ba45865af87 100644
--- a/clang/lib/Analysis/FormatString.cpp
+++ b/clang/lib/Analysis/FormatString.cpp
@@ -337,7 +337,7 @@ bool ArgTypeResult::matchesType(ASTContext &C, QualType argTy) const {
case CPointerTy:
return argTy->isPointerType() || argTy->isObjCObjectPointerType() ||
- argTy->isNullPtrType();
+ argTy->isBlockPointerType() || argTy->isNullPtrType();
case ObjCPointerTy: {
if (argTy->getAs<ObjCObjectPointerType>() ||
OpenPOWER on IntegriCloud