From: Serge Pavlov Date: Wed, 15 Feb 2017 12:30:35 +0000 (+0000) Subject: Use dedicated method instead of copying conditions. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4911bc4588798909c56e61fa0687a2a62ab667e2;p=clang Use dedicated method instead of copying conditions. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295172 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 2927199506..4ba609b562 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -2503,7 +2503,7 @@ bool FunctionDecl::isVariadic() const { bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { for (auto I : redecls()) { - if (I->Body || I->IsLateTemplateParsed) { + if (I->doesThisDeclarationHaveABody()) { Definition = I; return true; }