Changeset 496ffc17 for src/Validate/Autogen.cpp
- Timestamp:
- Feb 1, 2024, 5:05:54 PM (7 months ago)
- Branches:
- master
- Children:
- 9ddcee1
- Parents:
- 32490deb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
r32490deb r496ffc17 751 751 * returns to zero. 752 752 */ 753 auto dstExpr = new ast::VariableExpr( location, dstParam );754 const ast::Expr * srcExpr;755 if ( decl->base ) {756 srcExpr = new ast::ApplicationExpr( location,757 ast::VariableExpr::functionPointer( location, genPosProto() ),758 {759 new ast::VariableExpr( location, srcParam )760 }761 );762 } else {763 srcExpr = new ast::VariableExpr( location, srcParam );764 }765 766 753 auto callExpr = new ast::ApplicationExpr( location, 767 754 ast::VariableExpr::functionPointer( location, functionDecl ), 768 755 { 769 dstExpr,770 srcExpr,756 new ast::VariableExpr( location, dstParam ), 757 new ast::VariableExpr( location, srcParam ) 771 758 } 772 759 );
Note: See TracChangeset
for help on using the changeset viewer.