diff options
author | Richard Trieu <rtrieu@google.com> | 2015-05-15 22:07:49 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-05-15 22:07:49 +0000 |
commit | 0ff51f39deacb0622f64e2c6100edfa87a6081b5 (patch) | |
tree | 4d360c50d741019a26436adc9dbe7155156a48e3 /clang/lib/Sema/SemaInit.cpp | |
parent | 3de83e4098af7e10175487d831d259108310b313 (diff) | |
download | bcm5719-llvm-0ff51f39deacb0622f64e2c6100edfa87a6081b5.tar.gz bcm5719-llvm-0ff51f39deacb0622f64e2c6100edfa87a6081b5.zip |
Reverse the order of types in the reference dropping qualifiers error.
The error has the form ... 'int' ... 'const int' ... dropped qualifiers. At
first glance, it appears that the const qualifier is added. Reverse the types
so that the second type is less qualified than the first.
llvm-svn: 237482
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index ac0688643c5..32570c71757 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -6854,8 +6854,8 @@ bool InitializationSequence::Diagnose(Sema &S, case FK_ReferenceInitDropsQualifiers: S.Diag(Kind.getLocation(), diag::err_reference_bind_drops_quals) - << DestType.getNonReferenceType() << Args[0]->getType() + << DestType.getNonReferenceType() << Args[0]->getSourceRange(); break; |