aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-07 21:36:02 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-07 21:36:02 +0000
commitbc468ba19c0bad9bf4a40ff39d8fad7e471bfbf5 (patch)
tree010f292c05a7d0128db199d9f79fac3432cb708b /lib/Sema/SemaDecl.cpp
parent83233a4b7c2bc7b531ffa3b33fdd1cd8138373b6 (diff)
Fix PR clang/3291
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 49719ab4f5..351694c74d 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -343,11 +343,11 @@ Decl *Sema::LookupDecl(DeclarationName Name, unsigned NSI, Scope *S,
}
}
+ if (!LookInParent && !Ctx->isTransparentContext())
+ return 0;
+
Ctx = Ctx->getParent();
}
-
- if (!LookInParent && !Ctx->isTransparentContext())
- return 0;
}
}