Changeset c9f6983 for src/AST


Ignore:
Timestamp:
Dec 17, 2020, 1:00:47 PM (4 years ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
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.