From 0f4f5621d194c9221b55bb4a20a251a0bb497d69 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 16 Jan 2017 10:26:03 +0100 Subject: [PATCH] Use compat::isLookupContext Change-Id: I5b4523929f971d0345f112ba4f5faff1181cee2b --- compilerplugins/clang/salbool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());