[format strings] correctly suggest correct type for '%@' specifiers. Fixes <rdar://problem/9607158>.

llvm-svn: 133024
This commit is contained in:
Ted Kremenek
2011-06-14 22:56:51 +00:00
parent cd7f70e8b5
commit 192ed0b7ee
3 changed files with 5 additions and 1 deletions

View File

@@ -348,6 +348,8 @@ ArgTypeResult PrintfSpecifier::getArgType(ASTContext &Ctx) const {
return Ctx.WCharTy;
case ConversionSpecifier::pArg:
return ArgTypeResult::CPointerTy;
case ConversionSpecifier::ObjCObjArg:
return ArgTypeResult::ObjCPointerTy;
default:
break;
}