r226756 - Remove an out-of-date and incorrect comment.

Richard Smith richard-llvm at metafoo.co.uk
Wed Jan 21 17:15:51 PST 2015


Author: rsmith
Date: Wed Jan 21 19:15:51 2015
New Revision: 226756

URL: http://llvm.org/viewvc/llvm-project?rev=226756&view=rev
Log:
Remove an out-of-date and incorrect comment.

Modified:
    cfe/trunk/lib/Sema/SemaOverload.cpp

Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=226756&r1=226755&r2=226756&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Wed Jan 21 19:15:51 2015
@@ -4254,16 +4254,6 @@ TryReferenceInit(Sema &S, Expr *Init, Qu
   //     -- Otherwise, the reference shall be an lvalue reference to a
   //        non-volatile const type (i.e., cv1 shall be const), or the reference
   //        shall be an rvalue reference.
-  //
-  // We actually handle one oddity of C++ [over.ics.ref] at this
-  // point, which is that, due to p2 (which short-circuits reference
-  // binding by only attempting a simple conversion for non-direct
-  // bindings) and p3's strange wording, we allow a const volatile
-  // reference to bind to an rvalue. Hence the check for the presence
-  // of "const" rather than checking for "const" being the only
-  // qualifier.
-  // This is also the point where rvalue references and lvalue inits no longer
-  // go together.
   if (!isRValRef && (!T1.isConstQualified() || T1.isVolatileQualified()))
     return ICS;
 





More information about the cfe-commits mailing list