Changes in src/ResolvExpr/Resolver.cc [9feb34b:12df6fe]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r9feb34b r12df6fe 38 38 #include "AST/SymbolTable.hpp" 39 39 #include "AST/Type.hpp" 40 #include "Common/Eval.h" // for eval41 #include "Common/Iterate.hpp" // for group_iterate42 40 #include "Common/PassVisitor.h" // for PassVisitor 43 41 #include "Common/SemanticError.h" // for SemanticError 44 42 #include "Common/Stats/ResolveTime.h" // for ResolveTime::start(), ResolveTime::stop() 45 #include "Common/ ToString.hpp" // for toCString43 #include "Common/utility.h" // for ValueGuard, group_iterate 46 44 #include "InitTweak/GenInit.h" 47 45 #include "InitTweak/InitTweak.h" // for isIntrinsicSingleArgCallStmt … … 1544 1542 } 1545 1543 1544 1546 1545 const ast::StaticAssertDecl * Resolver_new::previsit( 1547 1546 const ast::StaticAssertDecl * assertDecl … … 1555 1554 const PtrType * handlePtrType( const PtrType * type, const ResolveContext & context ) { 1556 1555 if ( type->dimension ) { 1557 const ast::Type * sizeType = context.global.sizeType.get();1556 ast::ptr< ast::Type > sizeType = context.global.sizeType; 1558 1557 ast::ptr< ast::Expr > dimension = findSingleExpression( type->dimension, sizeType, context ); 1559 1558 assertf(dimension->env->empty(), "array dimension expr has nonempty env"); 1560 1559 dimension.get_and_mutate()->env = nullptr; 1561 ast::mutate_field( type, &PtrType::dimension, dimension ); 1560 ast::mutate_field( 1561 type, &PtrType::dimension, 1562 dimension); 1562 1563 } 1563 1564 return type;
Note:
See TracChangeset
for help on using the changeset viewer.