Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r12df6fe r9feb34b  
    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
    4042#include "Common/PassVisitor.h"          // for PassVisitor
    4143#include "Common/SemanticError.h"        // for SemanticError
    4244#include "Common/Stats/ResolveTime.h"    // for ResolveTime::start(), ResolveTime::stop()
    43 #include "Common/utility.h"              // for ValueGuard, group_iterate
     45#include "Common/ToString.hpp"           // for toCString
    4446#include "InitTweak/GenInit.h"
    4547#include "InitTweak/InitTweak.h"         // for isIntrinsicSingleArgCallStmt
     
    15421544        }
    15431545
    1544 
    15451546        const ast::StaticAssertDecl * Resolver_new::previsit(
    15461547                const ast::StaticAssertDecl * assertDecl
     
    15541555        const PtrType * handlePtrType( const PtrType * type, const ResolveContext & context ) {
    15551556                if ( type->dimension ) {
    1556                         ast::ptr< ast::Type > sizeType = context.global.sizeType;
     1557                        const ast::Type * sizeType = context.global.sizeType.get();
    15571558                        ast::ptr< ast::Expr > dimension = findSingleExpression( type->dimension, sizeType, context );
    15581559                        assertf(dimension->env->empty(), "array dimension expr has nonempty env");
    15591560                        dimension.get_and_mutate()->env = nullptr;
    1560                         ast::mutate_field(
    1561                                 type, &PtrType::dimension,
    1562                                 dimension);
     1561                        ast::mutate_field( type, &PtrType::dimension, dimension );
    15631562                }
    15641563                return type;
Note: See TracChangeset for help on using the changeset viewer.