projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f22aa44
)
NULL check before use
author
Eddie Hung
<eddie@fpgeh.com>
Tue, 16 Apr 2019 19:59:48 +0000
(12:59 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Tue, 16 Apr 2019 19:59:48 +0000
(12:59 -0700)
backends/aiger/xaiger.cc
patch
|
blob
|
history
diff --git
a/backends/aiger/xaiger.cc
b/backends/aiger/xaiger.cc
index f7c75775489ad282349da809899b72a9fe493682..875a2ec03ddf602f17a496b9bdc9b9b444df7ec9 100644
(file)
--- a/
backends/aiger/xaiger.cc
+++ b/
backends/aiger/xaiger.cc
@@
-231,7
+231,7
@@
struct XAigerWriter
co_bits.emplace_back(b, 0);
else {
output_bits.insert(b);
- if (!b.wire->port_input)
+ if (
b.wire &&
!b.wire->port_input)
unused_bits.erase(b);
}
}