Changeset 365c8dcb for src/AST/Convert.cpp
- Timestamp:
- Apr 14, 2022, 3:00:28 PM (2 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- bfd5512
- Parents:
- 30d91e4 (diff), 4ec9513 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r30d91e4 r365c8dcb 951 951 } 952 952 953 const ast::Expr * visit( const ast::DimensionExpr * node ) override final { 954 auto expr = visitBaseExpr( node, new DimensionExpr( node->name ) ); 955 this->node = expr; 956 return nullptr; 957 } 958 953 959 const ast::Expr * visit( const ast::AsmExpr * node ) override final { 954 960 auto expr = visitBaseExpr( node, … … 2463 2469 2464 2470 virtual void visit( const DimensionExpr * old ) override final { 2465 // DimensionExpr gets desugared away in Validate. 2466 // As long as new-AST passes don't use it, this cheap-cheerful error 2467 // detection helps ensure that these occurrences have been compiled 2468 // away, as expected. To move the DimensionExpr boundary downstream 2469 // or move the new-AST translation boundary upstream, implement 2470 // DimensionExpr in the new AST and implement a conversion. 2471 (void) old; 2472 assert(false && "DimensionExpr should not be present at new-AST boundary"); 2471 this->node = visitBaseExpr( old, 2472 new ast::DimensionExpr( old->location, old->name ) 2473 ); 2473 2474 } 2474 2475
Note: See TracChangeset
for help on using the changeset viewer.