diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-03-15 21:22:27 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-03-15 21:22:27 +0000 |
commit | c08c475fe00137ae2fdbc271990d0ad3dceb3af0 (patch) | |
tree | cf1175017d46b62eab390b073ecced059688facf /clang/lib/Analysis/FormatString.cpp | |
parent | c564440f15702dd0fc31f31ae870fe2ae5fcd5ef (diff) | |
download | bcm5719-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.cpp | 2 |
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>() || |