fix bug introduced by not taking all of PeterCrozier's changes in 16ea4ea6
authorJeff Wang <jjj11x@gmail.com>
Fri, 17 Jan 2020 06:21:09 +0000 (01:21 -0500)
committerJeff Wang <jeff.wang@utexas.edu>
Fri, 17 Jan 2020 07:07:42 +0000 (02:07 -0500)
commit98c6bd76306db8d0cb6428d1e60d132c965132ac
tree97ed60dfeeafa688cf7cfb3ddff0dba0e94f7252
parent8ef5c7d48cc395535fe589d9798ad9985729b635
fix bug introduced by not taking all of PeterCrozier's changes in 16ea4ea6

The if(str == node->str) is in fact necessary (otherwise causes generate
for in Multiplier_2D in tests/simple/multiplier.v to fail with error
message "Right hand side of 3rd expression of generate for-loop is not
constant!"). Note: in PeterCrozier's implementation, the break only
breaks out of the switch-case, not the outer for loop.
frontends/ast/simplify.cc