diff --git a/core/metautils/src/TMetaUtils.cxx b/core/metautils/src/TMetaUtils.cxx index a9de22e2c9eda87beb7b4eabf6b9ce9e5bec9769..6c83d4523296330e0332ff48e40341672d9735c2 100644 --- a/core/metautils/src/TMetaUtils.cxx +++ b/core/metautils/src/TMetaUtils.cxx @@ -718,7 +718,7 @@ ROOT::TMetaUtils::ScopeSearch(const char *name, const cling::Interpreter &interp const clang::CXXRecordDecl *result = llvm::dyn_cast_or_null<clang::CXXRecordDecl> (lh.findScope(name, - diagnose ? cling::LookupHelper::NoDiagnostics + diagnose ? cling::LookupHelper::WithDiagnostics : cling::LookupHelper::NoDiagnostics, resultType)); if (!result) { @@ -726,7 +726,7 @@ ROOT::TMetaUtils::ScopeSearch(const char *name, const cling::Interpreter &interp std_name += name; result = llvm::dyn_cast_or_null<clang::CXXRecordDecl> (lh.findScope(std_name, - diagnose ? cling::LookupHelper::NoDiagnostics + diagnose ? cling::LookupHelper::WithDiagnostics : cling::LookupHelper::NoDiagnostics, resultType)); }