From 95d8b368d11eeccc276c0c6ac225144566a1206d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 25 Nov 2019 13:04:02 +0100 Subject: Adapt to clang::MaterializeTemporaryExpr::GetTemparyExpr rename ...in "[NFC] Refactor representation of materialized temporaries" Change-Id: I02fbf6765f9713e4d457f07521129cc9d8db5751 Reviewed-on: https://gerrit.libreoffice.org/83669 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/unoquery.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compilerplugins/clang/unoquery.cxx') diff --git a/compilerplugins/clang/unoquery.cxx b/compilerplugins/clang/unoquery.cxx index 82427555fef9..fd7715fe1df3 100644 --- a/compilerplugins/clang/unoquery.cxx +++ b/compilerplugins/clang/unoquery.cxx @@ -10,6 +10,7 @@ #ifndef LO_CLANG_SHARED_PLUGINS #include "check.hxx" +#include "compat.hxx" #include "plugin.hxx" // TODO it would be better if we were running some kind of nullability analysis here, where we marked @@ -63,7 +64,7 @@ bool UnoQuery::VisitCXXMemberCallExpr(CXXMemberCallExpr const* memberCallExpr) Expr const* expr = operatorCallExpr->getArg(0)->IgnoreImplicit(); // depending on the version of clang, the IgnoreImplicit may or may not look through these nodes if (auto matTemp = dyn_cast(expr)) - expr = matTemp->GetTemporaryExpr(); + expr = compat::getSubExpr(matTemp); if (auto bindTemp = dyn_cast(expr)) expr = bindTemp->getSubExpr(); -- cgit