Skip to content

Commit

Permalink
fixed conditional jump under uninitialized value (valgrind)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasMW committed Dec 3, 2017
1 parent 01eb877 commit 322c472
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/symbolTable.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ Type* unaryType(Exp* e) {

Type* CmpType(Exp* e) {
Type* t = (Type*)malloc(sizeof(Type));
t->tag = base;
t->b = WInt;
return t;
}
Expand Down

0 comments on commit 322c472

Please sign in to comment.