From: Eddie Hung Date: Fri, 21 Jun 2019 04:56:02 +0000 (-0700) Subject: Fix gcc invalidation behaviour for write_aiger X-Git-Tag: working-ls180~1237^2~71 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4422b7311b8d672df386f993b413d32baad8550b;p=yosys.git Fix gcc invalidation behaviour for write_aiger --- diff --git a/backends/aiger/aiger.cc b/backends/aiger/aiger.cc index 4c2ea511a..4fb47f0d6 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)