diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-02-01 23:23:50 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-02-01 23:23:50 +0000 |
| commit | 016b6052662c772ea8866694e54626e334214010 (patch) | |
| tree | bc491579c67fe384fcd8efcd4a17e38d26ef8a2e /clang/lib/Analysis/PrintfFormatString.cpp | |
| parent | 5b66b31774d8e5bb3cc43900d419362d8e93b398 (diff) | |
| download | llvm-016b6052662c772ea8866694e54626e334214010.zip llvm-016b6052662c772ea8866694e54626e334214010.tar.gz llvm-016b6052662c772ea8866694e54626e334214010.tar.bz2 | |
Add format string type checking support for 'long double'.
llvm-svn: 95026
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
| -rw-r--r-- | clang/lib/Analysis/PrintfFormatString.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index d2bcbb0..35c620a 100644 --- a/clang/lib/Analysis/PrintfFormatString.cpp +++ b/clang/lib/Analysis/PrintfFormatString.cpp @@ -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(); |
