mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #3111 from whitequark/issue-3110
Fix null pointer dereference after failing to extract DFF from memory
This commit is contained in:
commit
5dadcc85b7
|
@ -985,6 +985,7 @@ Cell *Mem::extract_rdff(int idx, FfInitVals *initvals) {
|
||||||
c = ff.emit();
|
c = ff.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (c)
|
||||||
log("Extracted %s FF from read port %d of %s.%s: %s\n", trans_use_addr ? "addr" : "data",
|
log("Extracted %s FF from read port %d of %s.%s: %s\n", trans_use_addr ? "addr" : "data",
|
||||||
idx, log_id(module), log_id(memid), log_id(c));
|
idx, log_id(module), log_id(memid), log_id(c));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue