Changeset dd33c1f for src/ResolvExpr
- Timestamp:
- Jul 26, 2022, 2:17:49 PM (4 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, stuck-waitfor-destruct
- Children:
- 1b97cc87
- Parents:
- 4c48be0 (diff), 3992098 (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
-
src/ResolvExpr/Resolver.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r4c48be0 rdd33c1f 1542 1542 } 1543 1543 1544 1545 1544 const ast::StaticAssertDecl * Resolver_new::previsit( 1546 1545 const ast::StaticAssertDecl * assertDecl … … 1554 1553 const PtrType * handlePtrType( const PtrType * type, const ResolveContext & context ) { 1555 1554 if ( type->dimension ) { 1556 ast::ptr< ast::Type > sizeType = context.global.sizeType;1555 const ast::Type * sizeType = context.global.sizeType.get(); 1557 1556 ast::ptr< ast::Expr > dimension = findSingleExpression( type->dimension, sizeType, context ); 1558 1557 assertf(dimension->env->empty(), "array dimension expr has nonempty env"); 1559 1558 dimension.get_and_mutate()->env = nullptr; 1560 ast::mutate_field( 1561 type, &PtrType::dimension, 1562 dimension); 1559 ast::mutate_field( type, &PtrType::dimension, dimension ); 1563 1560 } 1564 1561 return type;
Note:
See TracChangeset
for help on using the changeset viewer.