diff options
author | Roy Jacobson <roi.jacobson1@gmail.com> | 2022-11-27 00:57:23 +0200 |
---|---|---|
committer | Roy Jacobson <roi.jacobson1@gmail.com> | 2022-11-29 14:57:26 +0200 |
commit | 3c75feab3bbda563374f08e46a7c052c0c6f1c36 (patch) | |
tree | 8896a753d196bc814cad08f10fbd19de1e35f2ec /llvm/lib/Support/MemoryBuffer.cpp | |
parent | 7ab83a7046f18b43055e040217f136a8ac6d98a1 (diff) | |
download | llvm-3c75feab3bbda563374f08e46a7c052c0c6f1c36.zip llvm-3c75feab3bbda563374f08e46a7c052c0c6f1c36.tar.gz llvm-3c75feab3bbda563374f08e46a7c052c0c6f1c36.tar.bz2 |
[clang] Compare constraints before diagnosing mismatched ref qualifiers (GH58962)
As noticed in GH58962, we should only diagnose illegal overloads of member functions
when the ref qualifiers don't match if the trailing constraints are the same.
The fix is to move the existing constraints check earlier in Sema::IsOverload.
Closes https://github.com/llvm/llvm-project/issues/58962
Reviewed By: erichkeane
Differential Revision: https://reviews.llvm.org/D138749
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
0 files changed, 0 insertions, 0 deletions