From: Eddie Hung Date: Wed, 25 Sep 2019 21:05:59 +0000 (-0700) Subject: unextend only used in init X-Git-Tag: working-ls180~1039^2~26 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=486dd7c483d4277ffb09975fb943881bdc122f4d;p=yosys.git unextend only used in init --- diff --git a/passes/pmgen/ice40_dsp.pmg b/passes/pmgen/ice40_dsp.pmg index 046aae9e2..9330dd09b 100644 --- a/passes/pmgen/ice40_dsp.pmg +++ b/passes/pmgen/ice40_dsp.pmg @@ -1,6 +1,5 @@ pattern ice40_dsp -udata > unextend state clock state clock_pol cd_signed o_lo state sigA sigB sigCD sigH sigO @@ -28,7 +27,7 @@ match mul endmatch code sigA sigB sigH - unextend = [](const SigSpec &sig) { + auto unextend = [](const SigSpec &sig) { int i; for (i = GetSize(sig)-1; i > 0; i--) if (sig[i] != sig[i-1])