Changeset 496ffc17 for src/Validate
- Timestamp:
- Feb 1, 2024, 5:05:54 PM (4 months ago)
- Branches:
- master
- Children:
- 9ddcee1
- Parents:
- 32490deb
- Location:
- src/Validate
- Files:
-
- 2 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 ); -
src/Validate/ReplacePseudoFunc.cpp
r32490deb r496ffc17 128 128 location, ast::ConstantExpr::from_string(location, mem->name))); 129 129 } 130 // Values only131 130 if (queryValues.count(enumDecl->name)) { 132 131 auto init = new ast::ListInit(location, std::move(inits)); … … 166 165 auto untyped = new ast::UntypedExpr( 167 166 location, new ast::NameExpr(location, "?[?]"), 168 { new ast::VariableExpr(*arrAsVar), new ast::VariableExpr(*arg)});167 { std::move(arrAsVar), std::move(arg) }); 169 168 auto typedResult = ResolvExpr::findVoidExpression(untyped, context); 170 169
Note: See TracChangeset
for help on using the changeset viewer.