Changeset c9f6983


Ignore:
Timestamp:
Dec 17, 2020, 1:00:47 PM (9 months ago)
Author:
Fangren Yu <f37yu@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
b185ed2
Parents:
7522692
Message:

fix non-initialization UB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Type.hpp

    r7522692 rc9f6983  
    398398        // a zero value of formal_usage indicates an actual type (referenced inside body of parametric structs and functions)
    399399        TypeDecl::Kind kind;
    400         int formal_usage;
    401         int expr_id;
     400        int formal_usage = 0;
     401        int expr_id = 0;
    402402
    403403        // compact representation used for map lookups.
Note: See TracChangeset for help on using the changeset viewer.