summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index ae136f6df9e..19fc090e378 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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())
OpenPOWER on IntegriCloud