diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-21 01:04:33 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-21 01:04:33 +0000 |
commit | fb5d7efc279335bde2cdc0a73da525d6b28201e9 (patch) | |
tree | 791a10ad30b3a6db9d00db78989941d101396223 /lib/Sema/SemaInit.cpp | |
parent | b2855ad68d93824faf47c09bbef90ba74157f0f4 (diff) |
Improve the diagnostic that complains about binding an rvalue
reference to an lvalue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 59a3936131..3ed336dbb8 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -4140,6 +4140,7 @@ bool InitializationSequence::Diagnose(Sema &S, case FK_RValueReferenceBindingToLValue: S.Diag(Kind.getLocation(), diag::err_lvalue_to_rvalue_ref) + << DestType.getNonReferenceType() << Args[0]->getType() << Args[0]->getSourceRange(); break; |