Changeset 397c4392


Ignore:
Timestamp:
Mar 2, 2023, 3:57:22 PM (21 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
a8667ab
Parents:
1f951abd
Message:

Explicity initialized the fields of ResolveCopyCtors?. This may account for the inconsistent behaviour of the assert and should prevent anything similar happening in the future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInitNew.cpp

    r1f951abd r397c4392  
    107107        private:
    108108                /// hack to implement WithTypeSubstitution while conforming to mutation safety.
    109                 ast::TypeSubstitution * env;
    110                 bool                    envModified;
     109                ast::TypeSubstitution * env         = nullptr;
     110                bool                    envModified = false;
    111111        };
    112112
Note: See TracChangeset for help on using the changeset viewer.