[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 30 14:08:39 UTC 2021


 compilerplugins/clang/redundantfcast.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bf82015256aa9ac7ad11d66c04c1f0ff1226b91d
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Aug 30 12:42:12 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Aug 30 16:08:06 2021 +0200

    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 at redhat.com>

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)


More information about the Libreoffice-commits mailing list