Skip to content

Commit

Permalink
missing initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanohar committed Jan 29, 2023
1 parent 8ff798d commit 733165c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chpsim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4616,6 +4616,8 @@ ChpSimGraph *ChpSimGraph::_buildChpSimGraph (ActSimCore *sc,
sc->getLocalOffset (c->u.assign.id, sc->cursi(), &type, &width);
ret->stmt->u.assign.d.cx =
c->u.assign.id->Canonical (sc->cursi()->bnl->cur);
ret->stmt->u.assign.d.isbool = 0;
ret->stmt->u.assign.d.isenum = 0;
}
if (type == 1) {
Assert (width > 0, "zero-width int?");
Expand All @@ -4629,6 +4631,7 @@ ChpSimGraph *ChpSimGraph::_buildChpSimGraph (ActSimCore *sc,
else {
Assert (type == 0, "Typechecking?!");
ret->stmt->u.assign.isint = 0;
ret->stmt->u.assign.d.isbool = 1;
}
}
}
Expand Down

0 comments on commit 733165c

Please sign in to comment.