From 4911bc4588798909c56e61fa0687a2a62ab667e2 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295172 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0