diff --git a/compilerplugins/clang/salbool.cxx b/compilerplugins/clang/salbool.cxx index bdb56eae62be..a17f112b2fea 100644 --- a/compilerplugins/clang/salbool.cxx +++ b/compilerplugins/clang/salbool.cxx @@ -108,7 +108,7 @@ BoolOverloadKind isBoolOverloadOf( // encounter in practice: bool hasBoolOverload(FunctionDecl const * decl, bool mustBeDeleted) { auto ctx = decl->getDeclContext(); - if (!ctx->isLookupContext()) { + if (!compat::isLookupContext(*ctx)) { return false; } auto res = ctx->lookup(decl->getDeclName());