aboutsummaryrefslogtreecommitdiff
path: root/clang/include/clang/Sema/Lookup.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Sema/Lookup.h')
-rw-r--r--clang/include/clang/Sema/Lookup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Sema/Lookup.h b/clang/include/clang/Sema/Lookup.h
index 0466d06d753b..c6edc2df5b9f 100644
--- a/clang/include/clang/Sema/Lookup.h
+++ b/clang/include/clang/Sema/Lookup.h
@@ -348,7 +348,7 @@ public:
/// program.
static bool isVisible(Sema &SemaRef, NamedDecl *D) {
// If this declaration is not hidden, it's visible.
- if (!D->isHidden())
+ if (D->isUnconditionallyVisible())
return true;
// During template instantiation, we can refer to hidden declarations, if