From 58e1e54476d610d6c33ef483f216ed8a1282d35c Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Tue, 7 Aug 2012 08:59:46 +0000 Subject: Remove ScanfArgType and bake that logic into ArgType. This is useful for example for %n in printf, which expects a pointer to int with the same logic for checking as %d would have in scanf. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161407 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/PrintfFormatString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Analysis/PrintfFormatString.cpp') diff --git a/lib/Analysis/PrintfFormatString.cpp b/lib/Analysis/PrintfFormatString.cpp index 7e078938d0..0a30328b12 100644 --- a/lib/Analysis/PrintfFormatString.cpp +++ b/lib/Analysis/PrintfFormatString.cpp @@ -331,7 +331,7 @@ ArgType PrintfSpecifier::getArgType(ASTContext &Ctx, case ConversionSpecifier::pArg: return ArgType::CPointerTy; case ConversionSpecifier::nArg: - return Ctx.getPointerType(Ctx.IntTy); + return ArgType::PtrTo(Ctx.IntTy); case ConversionSpecifier::ObjCObjArg: return ArgType::ObjCPointerTy; default: -- cgit v1.2.3-18-g5258