summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compilerplugins/clang/expressionalwayszero.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/expressionalwayszero.cxx b/compilerplugins/clang/expressionalwayszero.cxx
index ff69154c7dc8..66e7c699a67a 100644
--- a/compilerplugins/clang/expressionalwayszero.cxx
+++ b/compilerplugins/clang/expressionalwayszero.cxx
@@ -163,7 +163,12 @@ bool ExpressionAlwaysZero::TraverseStaticAssertDecl( StaticAssertDecl * )
return true;
}
+// on clang-3.8, this plugin can generate OOM
+#if CLANG_VERSION >= 30900
loplugin::Plugin::Registration< ExpressionAlwaysZero > X("expressionalwayszero");
+#else
+loplugin::Plugin::Registration< ExpressionAlwaysZero > X("expressionalwayszero", false);
+#endif
}