commit | 9a618e1d179ea93bdfaf9e68612b9ba84361bb5e | [log] [tgz] |
---|---|---|
author | Serge Pavlov <sepavloff@gmail.com> | Wed Feb 15 12:30:35 2017 +0000 |
committer | Serge Pavlov <sepavloff@gmail.com> | Wed Feb 15 12:30:35 2017 +0000 |
tree | 72ef54099a32e385e4d884a5339f57bebc950ce5 | |
parent | 46d78f754a95ffd5fa88fb15d54fd97e05027466 [diff] [blame] |
Use dedicated method instead of copying conditions. NFC. llvm-svn: 295172
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 2927199..4ba609b 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp
@@ -2503,7 +2503,7 @@ bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { for (auto I : redecls()) { - if (I->Body || I->IsLateTemplateParsed) { + if (I->doesThisDeclarationHaveABody()) { Definition = I; return true; }