[Clang] Fix filtering of inline namespaces for friend functions
authorShafik Yaghmour <shafik.yaghmour@intel.com>
Fri, 7 Apr 2023 15:57:24 +0000 (08:57 -0700)
committerShafik Yaghmour <shafik.yaghmour@intel.com>
Fri, 7 Apr 2023 15:58:39 +0000 (08:58 -0700)
commitd89c6530fdb57da31f4750bf941a0e4a090c4474
tree5e2ad6bb320bad893603f608e1343bf6e2938195
parentcf07b882e2c18279b1ab9f45e6fd4e1c06fe95ce
[Clang] Fix filtering of inline namespaces for friend functions

PR D135370 implemented a performance improvement but it restricted the filtering
of declaration from inline namespace too much. In particular it did not filter
for the function template case.

This led to a regression and this PR removes that check.

This fixes: https://github.com/llvm/llvm-project/issues/61851

Differential Revision: https://reviews.llvm.org/D147762
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/SemaTemplate/friend.cpp