diff --git a/src/library/compiler/cse.cpp b/src/library/compiler/cse.cpp index e2d7edebef..e9e3cef68c 100644 --- a/src/library/compiler/cse.cpp +++ b/src/library/compiler/cse.cpp @@ -74,7 +74,7 @@ class cse_fn : public compiler_step_visitor { virtual void visit_macro(expr const & e) override { if (check_visited(e)) return; - add_candidate(e); + if (macro_num_args(e) > 0) add_candidate(e); for (unsigned i = 0; i < macro_num_args(e); i++) visit(macro_arg(e, i)); }