Skip to content

Commit

Permalink
Fix debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yan Churkin committed Jun 11, 2024
1 parent a2d5e00 commit 61c2b8f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/ast/ClockResolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,11 @@ void InstanceBodyVisitor::handle(const ConcurrentAssertionStatement& stmt) {
void InstanceBodyVisitor::handle(const ClockingBlockSymbol& clkSym) {
// Update current `SignalEvent` during visiting members of current clocking block
clkBlkSEC = clkSym.getEvent().as_if<const SignalEventControl>();
SLANG_ASSERT(clkBlkSEC);
visitDefault(clkSym);
// Empty clocking event means that the clocking block processing is done
clkBlkSEC = nullptr;
if (clkBlkSEC) {
visitDefault(clkSym);
// Empty clocking event means that the clocking block processing is done
clkBlkSEC = nullptr;
}
}

void ClockResolutionVisitor::handle(const InstanceBodySymbol& body) {
Expand Down

0 comments on commit 61c2b8f

Please sign in to comment.