forked from OSchip/llvm-project
Use dedicated method instead of copying conditions. NFC.
llvm-svn: 295172
This commit is contained in:
parent
46d78f754a
commit
9a618e1d17
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue