[cfe-commits] r83022 - in /cfe/trunk/lib/Sema: SemaDeclCXX.cpp SemaOverload.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Sep 28 15:03:08 PDT 2009
Author: fjahanian
Date: Mon Sep 28 17:03:07 2009
New Revision: 83022
URL: http://llvm.org/viewvc/llvm-project?rev=83022&view=rev
Log:
Minor API change. No change in functionality.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=83022&r1=83021&r2=83022&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon Sep 28 17:03:07 2009
@@ -3694,7 +3694,7 @@
if (badConversion) {
if ((Conversions.ConversionKind ==
ImplicitConversionSequence::BadConversion)
- && Conversions.ConversionFunctionSet.size() > 0) {
+ && !Conversions.ConversionFunctionSet.empty()) {
Diag(DeclLoc,
diag::err_lvalue_to_rvalue_ambig_ref) << Init->getSourceRange();
for (int j = Conversions.ConversionFunctionSet.size()-1;
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=83022&r1=83021&r2=83022&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Mon Sep 28 17:03:07 2009
@@ -2241,7 +2241,7 @@
// ranking implicit conversion sequences as described in 13.3.3.2, the ambiguous
// conversion sequence is treated as a user-defined sequence that is
// indistinguishable from any other user-defined conversion sequence
- if (Candidate.Conversions[ArgIdx].ConversionFunctionSet.size() > 0)
+ if (!Candidate.Conversions[ArgIdx].ConversionFunctionSet.empty())
Candidate.Conversions[ArgIdx].ConversionKind =
ImplicitConversionSequence::UserDefinedConversion;
else {
More information about the cfe-commits
mailing list