Changeset b7c53a9d for src/InitTweak


Ignore:
Timestamp:
Jul 14, 2023, 9:32:31 AM (17 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
402a1e7
Parents:
4acf56d
Message:

Added a new invariant check and the fixes required to make it pass. Not the new check is by no means exaustive (it doesn't even check every readonly pointer) but it should catch the most common/problematic cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r4acf56d rb7c53a9d  
    882882                if (!assign) {
    883883                        auto td = new ast::TypeDecl(CodeLocation(), "T", {}, nullptr, ast::TypeDecl::Dtype, true);
    884                         assign = new ast::FunctionDecl(CodeLocation(), "?=?", {},
     884                        assign = new ast::FunctionDecl(CodeLocation(), "?=?", {td},
    885885                        { new ast::ObjectDecl(CodeLocation(), "_dst", new ast::ReferenceType(new ast::TypeInstType("T", td))),
    886886                          new ast::ObjectDecl(CodeLocation(), "_src", new ast::TypeInstType("T", td))},
Note: See TracChangeset for help on using the changeset viewer.