Use compat::isLookupContext

Change-Id: I5b4523929f971d0345f112ba4f5faff1181cee2b
This commit is contained in:
Stephan Bergmann
2017-01-16 10:26:03 +01:00
parent cafe7442f0
commit 0f4f5621d1

View File

@@ -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());