summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commitbe19db0063a605fc981dc059d5ed28ef6ebda9ab (patch)
treeddf772c80937e532ba81b321b8b199867046de3f /clang/lib
parent6ea5dda489f145b8db48c19e1e38ac523d62b266 (diff)
downloadbcm5719-llvm-be19db0063a605fc981dc059d5ed28ef6ebda9ab.tar.gz
bcm5719-llvm-be19db0063a605fc981dc059d5ed28ef6ebda9ab.zip
Added a missing else part to my previous patche(s).
llvm-svn: 74108
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 0f73f9e9adf..ae136f6df9e 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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())
OpenPOWER on IntegriCloud