Add format string type checking support for 'long double'.

llvm-svn: 95026
This commit is contained in:
Ted Kremenek
2010-02-01 23:23:50 +00:00
parent 5b66b31774
commit 016b605266
2 changed files with 6 additions and 1 deletions

View File

@@ -311,8 +311,11 @@ ArgTypeResult FormatSpecifier::getArgType(ASTContext &Ctx) const {
return ArgTypeResult();
}
if (CS.isDoubleArg())
if (CS.isDoubleArg()) {
if (LM == AsLongDouble)
return Ctx.LongDoubleTy;
return Ctx.DoubleTy;
}
// FIXME: Handle other cases.
return ArgTypeResult();