Ignore:
Timestamp:
Jul 31, 2023, 4:38:35 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
07b59ec
Parents:
2e94f3e7 (diff), 17c13b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r2e94f3e7 rc68f6e6  
    891891                                dst = new ast::AddressExpr(dst);
    892892                        }
    893                 }
    894                 else {
     893                } else {
    895894                        dst = new ast::CastExpr(dst, new ast::ReferenceType(dst->result, {}));
    896895                }
     
    900899                        }
    901900                }
    902                 return new ast::ApplicationExpr(dst->location, ast::VariableExpr::functionPointer(dst->location, assign), {dst, src});
     901                auto var = ast::VariableExpr::functionPointer(dst->location, assign);
     902                auto app = new ast::ApplicationExpr(dst->location, var, {dst, src});
     903                // Skip the resolver, just set the result to the correct type.
     904                app->result = ast::deepCopy( src->result );
     905                return app;
    903906        }
    904907
Note: See TracChangeset for help on using the changeset viewer.