summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/PrintfFormatString.cpp
diff options
context:
space:
mode:
authorTom Care <tcare@apple.com>2010-06-17 22:55:40 +0000
committerTom Care <tcare@apple.com>2010-06-17 22:55:40 +0000
commit9eee328dacf877ca6d970b1600deb7b5e3f52967 (patch)
treefd89b0f21d5edd0878ad44e14e5e8db46b69c049 /clang/lib/Analysis/PrintfFormatString.cpp
parent0125b6410afbd92f828edd030f7691a2cfee4adc (diff)
downloadbcm5719-llvm-9eee328dacf877ca6d970b1600deb7b5e3f52967.tar.gz
bcm5719-llvm-9eee328dacf877ca6d970b1600deb7b5e3f52967.zip
Bug 7394 - Fixed toString representation of Precisions in format strings.
M include/clang/Analysis/Analyses/PrintfFormatString.h M lib/Analysis/PrintfFormatString.cpp llvm-svn: 106245
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
-rw-r--r--clang/lib/Analysis/PrintfFormatString.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp
index ba32e749a85..951be17e2f1 100644
--- a/clang/lib/Analysis/PrintfFormatString.cpp
+++ b/clang/lib/Analysis/PrintfFormatString.cpp
@@ -611,6 +611,9 @@ const char *LengthModifier::toString() const {
//===----------------------------------------------------------------------===//
void OptionalAmount::toString(llvm::raw_ostream &os) const {
+ if (UsesDotPrefix)
+ os << ".";
+
switch (hs) {
case Invalid:
case NotSpecified:
OpenPOWER on IntegriCloud