Skip to content

Commit 7aabeaf

Browse files
aaronj0vgvassilev
andcommitted
Drop cling guard when building lookup
Co-authored-by: Vassil Vassilev <v.g.vassilev@gmail.com>
1 parent 5995477 commit 7aabeaf

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/CppInterOp/CppInterOpInterpreter.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ inline clang::NamespaceDecl* Namespace(clang::Sema* S, const char* Name,
9797

9898
inline void Named(clang::Sema* S, clang::LookupResult& R,
9999
const clang::DeclContext* Within = nullptr) {
100-
#ifdef CPPINTEROP_USE_CLING
101100
if (Within)
102101
Within->getPrimaryContext()->buildLookup();
103-
#endif
104102
R.suppressDiagnostics();
105103
if (!Within)
106104
S->LookupName(R, S->TUScope);

0 commit comments

Comments
 (0)