diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-04-30 22:20:45 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-04-30 22:20:45 +0200 |
commit | 32ff37bb5a8cec79e8cbcfac4075cc553fa9a394 (patch) | |
tree | ddf93c4904ec52294cde136c14e9de38c8c00fdb | |
parent | e35fe1344dd4c8f11632ed2a7f5b0463352a1ee4 (diff) | |
download | yosys-32ff37bb5a8cec79e8cbcfac4075cc553fa9a394.tar.gz yosys-32ff37bb5a8cec79e8cbcfac4075cc553fa9a394.tar.bz2 yosys-32ff37bb5a8cec79e8cbcfac4075cc553fa9a394.zip |
Fix segfault in wreduce
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r-- | passes/opt/wreduce.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/passes/opt/wreduce.cc b/passes/opt/wreduce.cc index 68e077cf9..41de8aad1 100644 --- a/passes/opt/wreduce.cc +++ b/passes/opt/wreduce.cc @@ -180,6 +180,8 @@ struct WreduceWorker } auto info = mi.query(sig_q[i]); + if (info == nullptr) + return; if (!info->is_output && GetSize(info->ports) == 1 && !keep_bits.count(mi.sigmap(sig_q[i]))) { remove_init_bits.insert(sig_q[i]); sig_d.remove(i); |