Skip to content

Commit

Permalink
Fixed check for conflicting outputs on combinatorial UDPs that got br…
Browse files Browse the repository at this point in the history
…oken on the previous changes.
  • Loading branch information
udif committed Apr 4, 2024
1 parent 2e1d5ea commit 1bd9f11
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/ast/symbols/MemberSymbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1015,9 +1015,12 @@ static void createTableRow(const Scope& scope, const UdpEntrySyntax& syntax,
return 0;
};

auto stateChar = getStateChar(syntax.current);
if (!stateChar)
return;
char stateChar = 0;
if (syntax.current) {
stateChar = getStateChar(syntax.current);
if (!stateChar)
return;
}

auto getOutputChar = [](const UdpFieldBaseSyntax* base) -> char {
if (base && base->kind == SyntaxKind::UdpSimpleField) {
Expand Down

0 comments on commit 1bd9f11

Please sign in to comment.