summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2017-02-15 12:30:35 +0000
committerSerge Pavlov <sepavloff@gmail.com>2017-02-15 12:30:35 +0000
commit9a618e1d179ea93bdfaf9e68612b9ba84361bb5e (patch)
tree72ef54099a32e385e4d884a5339f57bebc950ce5 /clang/lib/AST/Decl.cpp
parent46d78f754a95ffd5fa88fb15d54fd97e05027466 (diff)
downloadbcm5719-llvm-9a618e1d179ea93bdfaf9e68612b9ba84361bb5e.tar.gz
bcm5719-llvm-9a618e1d179ea93bdfaf9e68612b9ba84361bb5e.zip
Use dedicated method instead of copying conditions. NFC.
llvm-svn: 295172
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 29271995063..4ba609b5626 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud