Permalink
Browse files

Fix assertion failure in opt_collapse_find_fn

  • Loading branch information...
nickg committed May 13, 2012
1 parent fe5785a commit a595a15af986161ae6ef144ca86969f8cb878c58
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/opt.c
View
@@ -50,6 +50,7 @@ static tree_t opt_collapse_find_fn(tree_t t, void *context)
const bool maybe_alias =
(tree_stmts(t) == 2)
&& (tree_kind(tree_stmt(t, 0)) == T_SIGNAL_ASSIGN)
+ && (tree_kind(tree_target(tree_stmt(t, 0))) == T_REF)
&& (tree_waveforms(tree_stmt(t, 0)) == 1)
&& (tree_kind(tree_stmt(t, 1)) == T_WAIT);

0 comments on commit a595a15

Please sign in to comment.