Skip to content

Commit

Permalink
fix _capture alias of `ExprMake{Block,Generator}'
Browse files Browse the repository at this point in the history
Use proper c++ name in order to fix aot errors (caught in paranoid mode)
  • Loading branch information
Vladimir 'virtul' Ivannikov committed Dec 12, 2024
1 parent e67aed4 commit bd40836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builtin/module_builtin_ast_annotations_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ namespace das {
: AstExpressionAnnotation<ExprMakeBlock> ("ExprMakeBlock", ml) {
addField<DAS_BIND_MANAGED_FIELD(block)>("_block","block");
addField<DAS_BIND_MANAGED_FIELD(stackTop)>("stackTop");
addField<DAS_BIND_MANAGED_FIELD(capture)>("_capture");
addField<DAS_BIND_MANAGED_FIELD(capture)>("_capture", "capture");
addFieldEx ( "mmFlags", "mmFlags", offsetof(ExprMakeBlock, mmFlags), makeExprMakeBlockFlags() );
}
};
Expand All @@ -233,7 +233,7 @@ namespace das {
AstExprMakeGeneratorAnnotation(ModuleLibrary & ml)
: AstExprLooksLikeCallAnnotation<ExprMakeGenerator> ("ExprMakeGenerator", ml) {
addField<DAS_BIND_MANAGED_FIELD(iterType)>("iterType");
addField<DAS_BIND_MANAGED_FIELD(capture)>("_capture");
addField<DAS_BIND_MANAGED_FIELD(capture)>("_capture", "capture");
}
};

Expand Down

0 comments on commit bd40836

Please sign in to comment.