Skip to content

Commit 322c472

Browse files
committed
fixed conditional jump under uninitialized value (valgrind)
1 parent 01eb877 commit 322c472

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/symbolTable.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ Type* unaryType(Exp* e) {
513513

514514
Type* CmpType(Exp* e) {
515515
Type* t = (Type*)malloc(sizeof(Type));
516+
t->tag = base;
516517
t->b = WInt;
517518
return t;
518519
}

0 commit comments

Comments
 (0)