summaryrefslogtreecommitdiffstats
path: root/clang/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
commitf32527879972854cbe2f43949428120791d3c697 (patch)
treed8146800194baf3ce4b103979e4090c9dab6ffc9 /clang/lib/Sema/SemaDecl.cpp
parentf09c2dc8e06480d962cea7bfd5562575bdf168ae (diff)
downloadbcm5719-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.cpp6
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;
}
}
OpenPOWER on IntegriCloud