aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-06-24 19:24:38 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-06-24 19:24:38 +0000
commitecce1314380e740bbe303cc68bf8f6b57480b09a (patch)
tree9d6b96dcc6b3ba824fd3371df3ec658cdd2c8537
parent5ceab86209c14062e228d2059a85864d5bc1bd6c (diff)
Added a missing else part to my previous patche(s).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74108 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaExpr.cpp3
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())