From 49b4d734519559f3bd9cebf706cd35f27c1e2b3a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 22 Jun 2010 23:07:26 +0000 Subject: 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 --- clang/lib/Analysis/PrintfFormatString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Analysis') diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index 8ad1d21312c..558d38af0c6 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()) { -- cgit v1.2.3