Use dedicated method instead of copying conditions. NFC.

llvm-svn: 295172
This commit is contained in:
Serge Pavlov 2017-02-15 12:30:35 +00:00
parent 46d78f754a
commit 9a618e1d17
1 changed files with 1 additions and 1 deletions

View 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;
}