]> granicus.if.org Git - clang/commitdiff
Use dedicated method instead of copying conditions. NFC.
authorSerge Pavlov <sepavloff@gmail.com>
Wed, 15 Feb 2017 12:30:35 +0000 (12:30 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Wed, 15 Feb 2017 12:30:35 +0000 (12:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295172 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp

index 29271995063d76962c5f75c472f2264a9ff915a7..4ba609b5626932cbb818044436692be67e2e9d9a 100644 (file)
@@ -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;
     }