summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-08-30 12:42:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-08-30 16:08:06 +0200
commitbf82015256aa9ac7ad11d66c04c1f0ff1226b91d (patch)
tree05c271fb144fe42987532ef53a3e4d76626a5582 /compilerplugins
parentae3816bced5d39c0e28ad6fe241f529060493b30 (diff)
Look through implicit MaterializeTemporaryExpr
...which gets introduced when building with recent Clang 14 trunk against recent libstdc++ 12 trunk (though no idea what change exactly in either of those started to cause this) Change-Id: Icde11e16465c0deaefe76eb8d1065362d4551651 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121296 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/redundantfcast.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/redundantfcast.cxx b/compilerplugins/clang/redundantfcast.cxx
index dc41ea63ded1..758aa6b611da 100644
--- a/compilerplugins/clang/redundantfcast.cxx
+++ b/compilerplugins/clang/redundantfcast.cxx
@@ -237,7 +237,7 @@ public:
auto cxxConstruct = dyn_cast<CXXConstructExpr>(compat::IgnoreImplicit(expr->getSubExpr()));
if (!cxxConstruct)
return false;
- auto const lambda = dyn_cast<LambdaExpr>(cxxConstruct->getArg(0));
+ auto const lambda = dyn_cast<LambdaExpr>(cxxConstruct->getArg(0)->IgnoreImplicit());
if (!lambda)
return false;
if (deduced)