From: Eddie Hung Date: Fri, 21 Jun 2019 04:56:02 +0000 (-0700) Subject: Fix gcc invalidation behaviour for write_aiger X-Git-Tag: yosys-0.9~59 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4ea6fff65d6b2e69a31649af7e10b129c6ae0f5;p=yosys.git Fix gcc invalidation behaviour for write_aiger --- diff --git a/backends/aiger/aiger.cc b/backends/aiger/aiger.cc index d685c5638..6863b40fa 100644 --- a/backends/aiger/aiger.cc +++ b/backends/aiger/aiger.cc @@ -89,7 +89,8 @@ struct AigerWriter aig_map[bit] = mkgate(a0, a1); } else if (alias_map.count(bit)) { - aig_map[bit] = bit2aig(alias_map.at(bit)); + int a = bit2aig(alias_map.at(bit)); + aig_map[bit] = a; } if (bit == State::Sx || bit == State::Sz)