Kaydet (Commit) 0f4f5621 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use compat::isLookupContext

Change-Id: I5b4523929f971d0345f112ba4f5faff1181cee2b
üst cafe7442
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment