[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Tue Aug 4 00:39:13 PDT 2015
compilerplugins/clang/refcounting.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit a2052db259c71618b4d26fcaa559b64f37e9e1a1
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Aug 4 09:38:44 2015 +0200
Workaround for ObjCIvarDecl problem
Change-Id: I7eb0fccce4b8268e5d9559b2eb12778d0d288c6b
diff --git a/compilerplugins/clang/refcounting.cxx b/compilerplugins/clang/refcounting.cxx
index 460db1c..710880e 100644
--- a/compilerplugins/clang/refcounting.cxx
+++ b/compilerplugins/clang/refcounting.cxx
@@ -50,6 +50,14 @@ public:
bool VisitFieldDecl(const FieldDecl *);
bool VisitVarDecl(const VarDecl *);
+
+ bool WalkUpFromObjCIvarDecl(ObjCIvarDecl * decl) {
+ // Don't recurse into WalkUpFromFieldDecl, as VisitFieldDecl calls
+ // FieldDecl::getParent, which triggers an assertion at least with
+ // current trunk towards Clang 3.7 when the FieldDecl is actually an
+ // ObjCIvarDecl.
+ return VisitObjCIvarDecl(decl);
+ }
};
bool BaseCheckNotSubclass(const CXXRecordDecl *BaseDefinition, void *p) {
More information about the Libreoffice-commits
mailing list