summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compilerplugins/clang/fakebool.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/fakebool.cxx b/compilerplugins/clang/fakebool.cxx
index 1dbb535ceef9..99fbf95e3d29 100644
--- a/compilerplugins/clang/fakebool.cxx
+++ b/compilerplugins/clang/fakebool.cxx
@@ -931,7 +931,10 @@ bool FakeBool::VisitFieldDecl(FieldDecl const * decl) {
return true;
}
TagDecl const * td = dyn_cast<TagDecl>(decl->getDeclContext());
- assert(td != nullptr);
+ if (td == nullptr) {
+ //TODO: ObjCInterface
+ return true;
+ }
if (!(((td->isStruct() || td->isUnion()) && td->isExternCContext())
|| isInUnoIncludeFile(
compiler.getSourceManager().getSpellingLoc(