compilerplugins/clang/dyncastvisibility.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 4f2bc21685b1eb30d3a7808ab021fd178652e411
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Tue Sep 5 09:38:30 2017 +0200

    When traversing a TemplateDecl, ts can be a dependent type
    
    Change-Id: I05b02ef807a12a802720f58cd5a2d6d370b42418

diff --git a/compilerplugins/clang/dyncastvisibility.cxx 
b/compilerplugins/clang/dyncastvisibility.cxx
index e212d7f2254d..31d20fba80d7 100644
--- a/compilerplugins/clang/dyncastvisibility.cxx
+++ b/compilerplugins/clang/dyncastvisibility.cxx
@@ -108,7 +108,9 @@ public:
             ts = t->getPointeeType();
         }
         auto const rts = ts->getAs<RecordType>();
-        assert(rts != nullptr);
+        if (rts == nullptr) { // in case it's a dependent type
+            return true;
+        }
         auto const rds = cast<CXXRecordDecl>(rts->getDecl())->getDefinition();
         assert(rds != nullptr);
         Bases bs;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to