diff options
author | Utkarsh Saxena <usaxena95@gmail.com> | 2023-10-23 14:10:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 14:10:06 +0200 |
commit | 9330261143ccbe947ef0687fd20747ba47f26879 (patch) | |
tree | 1fb68a6ffa37acf074eefa845ac931be3e034237 /clang/lib/Basic/SourceManager.cpp | |
parent | 596b59883d49efc7f41f05ebcae8b4f77e6792ef (diff) | |
download | llvm-9330261143ccbe947ef0687fd20747ba47f26879.zip llvm-9330261143ccbe947ef0687fd20747ba47f26879.tar.gz llvm-9330261143ccbe947ef0687fd20747ba47f26879.tar.bz2 |
Use the correct namespace for looking up matching operator!= (#68922)
`S.getScopeForContext` determins the **active** scope associated with
the given `declContext`.
This fails to find the matching `operator!=` if candidate `operator==`
was found via ADL since that scope is not active.
Instead, just directly lookup using the namespace decl of `operator==`
Fixes #68901
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions