summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-01-22 01:15:51 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-01-22 01:15:51 +0000
commit855cbfddbe16cee2709390210483d6b07f658c06 (patch)
tree09f743ff9ddae78d22c67cff72458fc0cf0e52ac
parentcb4736636632da83fbd746a6ce42a06d04af8448 (diff)
downloadbcm5719-llvm-855cbfddbe16cee2709390210483d6b07f658c06.tar.gz
bcm5719-llvm-855cbfddbe16cee2709390210483d6b07f658c06.zip
Remove an out-of-date and incorrect comment.
llvm-svn: 226756
-rw-r--r--clang/lib/Sema/SemaOverload.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index 75a511403d2..c244d7e5306 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -4254,16 +4254,6 @@ TryReferenceInit(Sema &S, Expr *Init, QualType DeclType,
// -- 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;
OpenPOWER on IntegriCloud