- Timestamp:
- Feb 1, 2024, 5:05:54 PM (7 months ago)
- Branches:
- master
- Children:
- 9ddcee1
- Parents:
- 32490deb
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
r32490deb r496ffc17 1403 1403 // not sufficient to just pass `variableExpr` here, type might have changed since 1404 1404 // creation 1405 if ( auto obj = 1405 if ( auto obj = dynamic_cast<const ast::ObjectDecl *>( variableExpr->var.get() )) { 1406 1406 if ( auto enumInstType = dynamic_cast<const ast::EnumInstType *>( obj->type.get() ) ) { 1407 1407 if ( enumInstType->base && enumInstType->base->base ) { -
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.