commit | 1ae2770c5bb2dbc11e4eabd9ecdd434c1e7da0b6 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <doug.gregor@gmail.com> | Wed Jan 07 21:36:02 2009 +0000 |
committer | Douglas Gregor <doug.gregor@gmail.com> | Wed Jan 07 21:36:02 2009 +0000 |
tree | 010f292c05a7d0128db199d9f79fac3432cb708b | |
parent | cc74331b39f125521e8c1fa66d3c3171ce119114 [diff] [blame] |
Fix PR clang/3291 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61886 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 49719ab..351694c 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp
@@ -343,11 +343,11 @@ } } + if (!LookInParent && !Ctx->isTransparentContext()) + return 0; + Ctx = Ctx->getParent(); } - - if (!LookInParent && !Ctx->isTransparentContext()) - return 0; } }