|
From: Martin W. <ic...@ma...> - 2018-01-26 19:02:37
|
David Fang via Iverilog-devel wrote:
> Hi all,
>
> Clang analysis tools have identified the following snippet of code as
> error-prone, in eval_tree.cc near line 712:
>
> for (unsigned idx = cnt ; idx < rv.len() ; idx += 1) {
> if (rv.get(idx) != pad)
> res = verinum::V0;
> break;
> }
>
> The break statement is unconditional, due to missing if open-brace, and
> thus the for-loop executes at most once. Is this a bug?
It is a bug. It's already been fixed in git, in both the master and the v10
branch.
|