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