aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorUtkarsh Saxena <usaxena95@gmail.com>2023-10-23 14:10:06 +0200
committerGitHub <noreply@github.com>2023-10-23 14:10:06 +0200
commit9330261143ccbe947ef0687fd20747ba47f26879 (patch)
tree1fb68a6ffa37acf074eefa845ac931be3e034237 /clang/lib/Basic/SourceManager.cpp
parent596b59883d49efc7f41f05ebcae8b4f77e6792ef (diff)
downloadllvm-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