Apply Jonathan Sauer's proposed solution to PR9519. Thanks!

llvm-svn: 128075
This commit is contained in:
John McCall 2011-03-22 07:16:37 +00:00
parent 6a4fa52b37
commit 30cd20a316
2 changed files with 7 additions and 1 deletions

View File

@ -5513,7 +5513,7 @@ static bool ShouldWarnAboutMissingPrototype(const FunctionDecl *FD) {
return false;
// Don't warn about inline functions.
if (FD->isInlineSpecified())
if (FD->isInlined())
return false;
// Don't warn about function templates.

View File

@ -24,3 +24,9 @@ template<typename> void h() { }
// Don't warn when instantiating function templates.
template void h<int>();
// PR9519: don't warn about friend functions.
class I {
friend void I_friend() {}
};