diff options
| author | Jacob Bandes-Storch <jacob@bandes-stor.ch> | 2017-12-31 04:49:39 +0000 |
|---|---|---|
| committer | Jacob Bandes-Storch <jacob@bandes-stor.ch> | 2017-12-31 04:49:39 +0000 |
| commit | c7e67a04e0f33f4e79b23829fd26ba142cf69b00 (patch) | |
| tree | 13056e463bc83957ff00c5282776e81c35dbb3bf /llvm/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp | |
| parent | 232951dfb21442e6da8ecbf115808314bd2d2404 (diff) | |
| download | bcm5719-llvm-c7e67a04e0f33f4e79b23829fd26ba142cf69b00.tar.gz bcm5719-llvm-c7e67a04e0f33f4e79b23829fd26ba142cf69b00.zip | |
[Sema] Improve diagnostics for const- and ref-qualified member functions
Summary:
Adjust wording for const-qualification mismatch to be a little more clear.
Also add another diagnostic for a ref qualifier mismatch, which previously produced a useless error (this error path is simply very old; see rL119336):
Before:
error: cannot initialize object parameter of type 'X0' with an expression of type 'X0'
After:
error: 'this' argument to member function 'rvalue' is an lvalue, but function has rvalue ref-qualifier
Reviewers: rsmith, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: lebedev.ri, aaron.ballman, cfe-commits
Differential Revision: https://reviews.llvm.org/D39937
llvm-svn: 321592
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp')
0 files changed, 0 insertions, 0 deletions

