PR22673 again: diagnose use of the used decl, not the found decl. This is also
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 24 Feb 2015 21:44:43 +0000 (21:44 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 24 Feb 2015 21:44:43 +0000 (21:44 +0000)
commit7c9442a6aefe268a7714d9ad7a94d6e15d6418f0
tree693cf16ac6b45327c50caf6727069d3e062d5f93
parent2ce48056a4fada8a810bcefe09888e0e883ca878
PR22673 again: diagnose use of the used decl, not the found decl. This is also
wrong (DiagnoseUseOfDecl should take both), but it's more consistent with what
we do in other places.

llvm-svn: 230384
clang/lib/Sema/SemaExprCXX.cpp
clang/test/SemaCXX/deleted-function.cpp