Changes in src/ResolvExpr/Resolver.cc [5cf1228:9e23b446]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r5cf1228 r9e23b446 1542 1542 } 1543 1543 1544 1544 1545 const ast::StaticAssertDecl * Resolver_new::previsit( 1545 1546 const ast::StaticAssertDecl * assertDecl … … 1553 1554 const PtrType * handlePtrType( const PtrType * type, const ResolveContext & context ) { 1554 1555 if ( type->dimension ) { 1555 const ast::Type * sizeType = context.global.sizeType.get();1556 ast::ptr< ast::Type > sizeType = context.global.sizeType; 1556 1557 ast::ptr< ast::Expr > dimension = findSingleExpression( type->dimension, sizeType, context ); 1557 1558 assertf(dimension->env->empty(), "array dimension expr has nonempty env"); 1558 1559 dimension.get_and_mutate()->env = nullptr; 1559 ast::mutate_field( type, &PtrType::dimension, dimension ); 1560 ast::mutate_field( 1561 type, &PtrType::dimension, 1562 dimension); 1560 1563 } 1561 1564 return type;
Note:
See TracChangeset
for help on using the changeset viewer.