diff options
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 0f73f9e9ad..ae136f6df9 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -5548,8 +5548,7 @@ void Sema::MarkDeclarationReferenced(SourceLocation Loc, Decl *D) { else Constructor->setUsed(true); } - - if (FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) { + else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) { // Implicit instantiation of function templates if (!Function->getBody(Context)) { if (Function->getInstantiatedFromMemberFunction()) |