From 9a618e1d179ea93bdfaf9e68612b9ba84361bb5e Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Wed, 15 Feb 2017 12:30:35 +0000 Subject: [PATCH] Use dedicated method instead of copying conditions. NFC. llvm-svn: 295172 --- clang/lib/AST/Decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 29271995063d..4ba609b56269 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/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; }