Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r9feb34b r12df6fe  
    3838#include "AST/SymbolTable.hpp"
    3939#include "AST/Type.hpp"
    40 #include "Common/Eval.h"                 // for eval
    41 #include "Common/Iterate.hpp"            // for group_iterate
    4240#include "Common/PassVisitor.h"          // for PassVisitor
    4341#include "Common/SemanticError.h"        // for SemanticError
    4442#include "Common/Stats/ResolveTime.h"    // for ResolveTime::start(), ResolveTime::stop()
    45 #include "Common/ToString.hpp"           // for toCString
     43#include "Common/utility.h"              // for ValueGuard, group_iterate
    4644#include "InitTweak/GenInit.h"
    4745#include "InitTweak/InitTweak.h"         // for isIntrinsicSingleArgCallStmt
     
    15441542        }
    15451543
     1544
    15461545        const ast::StaticAssertDecl * Resolver_new::previsit(
    15471546                const ast::StaticAssertDecl * assertDecl
     
    15551554        const PtrType * handlePtrType( const PtrType * type, const ResolveContext & context ) {
    15561555                if ( type->dimension ) {
    1557                         const ast::Type * sizeType = context.global.sizeType.get();
     1556                        ast::ptr< ast::Type > sizeType = context.global.sizeType;
    15581557                        ast::ptr< ast::Expr > dimension = findSingleExpression( type->dimension, sizeType, context );
    15591558                        assertf(dimension->env->empty(), "array dimension expr has nonempty env");
    15601559                        dimension.get_and_mutate()->env = nullptr;
    1561                         ast::mutate_field( type, &PtrType::dimension, dimension );
     1560                        ast::mutate_field(
     1561                                type, &PtrType::dimension,
     1562                                dimension);
    15621563                }
    15631564                return type;
Note: See TracChangeset for help on using the changeset viewer.