Changeset dd33c1f for src/ResolvExpr


Ignore:
Timestamp:
Jul 26, 2022, 2:17:49 PM (4 years ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, stuck-waitfor-destruct
Children:
1b97cc87
Parents:
4c48be0 (diff), 3992098 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r4c48be0 rdd33c1f  
    15421542        }
    15431543
    1544 
    15451544        const ast::StaticAssertDecl * Resolver_new::previsit(
    15461545                const ast::StaticAssertDecl * assertDecl
     
    15541553        const PtrType * handlePtrType( const PtrType * type, const ResolveContext & context ) {
    15551554                if ( type->dimension ) {
    1556                         ast::ptr< ast::Type > sizeType = context.global.sizeType;
     1555                        const ast::Type * sizeType = context.global.sizeType.get();
    15571556                        ast::ptr< ast::Expr > dimension = findSingleExpression( type->dimension, sizeType, context );
    15581557                        assertf(dimension->env->empty(), "array dimension expr has nonempty env");
    15591558                        dimension.get_and_mutate()->env = nullptr;
    1560                         ast::mutate_field(
    1561                                 type, &PtrType::dimension,
    1562                                 dimension);
     1559                        ast::mutate_field( type, &PtrType::dimension, dimension );
    15631560                }
    15641561                return type;
Note: See TracChangeset for help on using the changeset viewer.