summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compilerplugins/clang/redundantcast.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/compilerplugins/clang/redundantcast.cxx b/compilerplugins/clang/redundantcast.cxx
index 8b5eb3d90e91..2c9a6fa49c89 100644
--- a/compilerplugins/clang/redundantcast.cxx
+++ b/compilerplugins/clang/redundantcast.cxx
@@ -80,12 +80,19 @@ public:
}
bool TraverseInitListExpr(
- InitListExpr * expr, DataRecursionQueue * queue = nullptr)
+ InitListExpr * expr
+#if CLANG_VERSION >= 30800
+ , DataRecursionQueue * queue = nullptr
+#endif
+ )
{
return WalkUpFromInitListExpr(expr)
&& TraverseSynOrSemInitListExpr(
- expr->isSemanticForm() ? expr : expr->getSemanticForm(),
- queue);
+ expr->isSemanticForm() ? expr : expr->getSemanticForm()
+#if CLANG_VERSION >= 30800
+ , queue
+#endif
+ );
}
bool VisitImplicitCastExpr(ImplicitCastExpr const * expr);