Revert "Address http://bugs.llvm.org/pr30994 so that a non-friend can properly replac...
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 17 Apr 2017 20:57:40 +0000 (20:57 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 17 Apr 2017 20:57:40 +0000 (20:57 +0000)
commitdcb52b167ae374b23d3f0e37cac6249257927c9d
tree23753db984b666f01b98050a212936bf2cebfc55
parentb0cec31db2905aa8e1dcd80b70616b3d5c3e16e7
Revert "Address bugs.llvm.org/pr30994 so that a non-friend can properly replace a friend, and a visible friend can properly replace an invisible friend but not vice verse, and definitions are not replaced. This fixes the two FIXME in SemaTemplate/friend-template.cpp."

This reverts commit r300443. Breaks compiling libc++ with modules in
some configurations.

llvm-svn: 300497
clang/include/clang/AST/DeclBase.h
clang/lib/AST/Decl.cpp
clang/lib/AST/DeclBase.cpp
clang/test/SemaTemplate/friend-template.cpp