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