Use compat::isLookupContext
Change-Id: I5b4523929f971d0345f112ba4f5faff1181cee2b
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user