Skip to content
Browse files

Fix assertion failure in opt_collapse_find_fn

  • Loading branch information...
1 parent fe5785a commit a595a15af986161ae6ef144ca86969f8cb878c58 @nickg committed May 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/opt.c
View
1 src/opt.c
@@ -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.
Something went wrong with that request. Please try again.