diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-06-22 23:07:26 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-06-22 23:07:26 +0000 |
| commit | 49b4d734519559f3bd9cebf706cd35f27c1e2b3a (patch) | |
| tree | 9e48a632248bd786e53b4312c96eb0846e6efa78 /clang/lib/Analysis/PrintfFormatString.cpp | |
| parent | 1081f1a0f518f3741bdefed2e51b80fb3a430098 (diff) | |
| download | llvm-49b4d734519559f3bd9cebf706cd35f27c1e2b3a.zip llvm-49b4d734519559f3bd9cebf706cd35f27c1e2b3a.tar.gz llvm-49b4d734519559f3bd9cebf706cd35f27c1e2b3a.tar.bz2 | |
Type Type::isRealFloatingType() that vectors are not floating-point
types, updating callers of both isFloatingType() and
isRealFloatingType() accordingly. Caught at least one issue where we
allowed one to declare a vector of vectors (!), along with cleaning up
the standard-conversion logic for C++.
llvm-svn: 106595
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
| -rw-r--r-- | clang/lib/Analysis/PrintfFormatString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index 8ad1d21..558d38a 100644 --- a/clang/lib/Analysis/PrintfFormatString.cpp +++ b/clang/lib/Analysis/PrintfFormatString.cpp @@ -757,7 +757,7 @@ bool FormatSpecifier::fixType(QualType QT) { HasPlusPrefix = 0; } // Test for Floating type first as LongDouble can pass isUnsignedIntegerType - else if (QT->isFloatingType()) { + else if (QT->isRealFloatingType()) { CS.setKind(ConversionSpecifier::fArg); } else if (QT->isPointerType()) { |
