Changes in src/InitTweak/InitTweak.cc [b7c53a9d:14c0f7b]
- File:
 - 
      
- 1 edited
 
- 
          
  src/InitTweak/InitTweak.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/InitTweak/InitTweak.cc
rb7c53a9d r14c0f7b 891 891 dst = new ast::AddressExpr(dst); 892 892 } 893 } 894 else { 893 } else { 895 894 dst = new ast::CastExpr(dst, new ast::ReferenceType(dst->result, {})); 896 895 } … … 900 899 } 901 900 } 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; 903 906 } 904 907  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.