Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CommonSubexpressions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function combine_subexprs!(cache::Cache, expr::Expr;
for (i, child) in enumerate(expr.args)
expr.args[i] = combine_subexprs!(cache, child, warn=warn, mod=mod)
end
if all(!isa(arg, Expr) && !(arg in cache.disqualified_symbols) for arg in drop(expr.args, 1))
if all(!isa(arg, Expr) && !(isa(arg, Symbol) && arg in cache.disqualified_symbols) for arg in drop(expr.args, 1))
combined_args = Symbol(expr.args...)
if !haskey(cache.args_to_symbol, combined_args)
sym = add_element!(cache, combined_args, expr)
Expand Down