Fix segfault in fork synchronization (#5906).
This commit is contained in:
parent
73d52c00bb
commit
6ba06498db
1
Changes
1
Changes
|
|
@ -66,6 +66,7 @@ Verilator 5.035 devel
|
|||
* Fix process comparisons (#5896).
|
||||
* Fix ccache with clang (#5899). [Geza Lore]
|
||||
* Fix delayed assignment malformed LHS assertion (#5904).
|
||||
* Fix segfault in fork synchronization (#5906). [Krzysztof Bieganski, Antmicro Ltd.]
|
||||
* Fix `new this` (#5909).
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -723,8 +723,8 @@ class TimingControlVisitor final : public VNVisitor {
|
|||
void makeForkJoin(AstFork* const forkp) {
|
||||
// Create a fork sync var
|
||||
FileLine* const flp = forkp->fileline();
|
||||
// If we're in a function, insert the sync var directly before the fork
|
||||
AstNode* const insertBeforep = m_classp ? forkp : nullptr;
|
||||
// Insert the sync var directly before the fork
|
||||
AstNode* const insertBeforep = forkp;
|
||||
addCLocalScope(flp, insertBeforep);
|
||||
AstVarScope* forkVscp
|
||||
= createTemp(flp, forkp->name() + "__sync", getCreateForkSyncDTypep(), insertBeforep);
|
||||
|
|
|
|||
Loading…
Reference in New Issue