diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-07 21:36:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-07 21:36:02 +0000 |
commit | f32527879972854cbe2f43949428120791d3c697 (patch) | |
tree | d8146800194baf3ce4b103979e4090c9dab6ffc9 /clang/lib/Sema/SemaDecl.cpp | |
parent | f09c2dc8e06480d962cea7bfd5562575bdf168ae (diff) | |
download | bcm5719-llvm-f32527879972854cbe2f43949428120791d3c697.tar.gz bcm5719-llvm-f32527879972854cbe2f43949428120791d3c697.zip |
Fix PR clang/3291
llvm-svn: 61886
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 49719ab4f52..351694c74d1 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/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; } } |