Ignore:
Timestamp:
Jul 30, 2018, 4:43:47 PM (3 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
4934ea3
Parents:
1be845b
git-author:
Rob Schluntz <rschlunt@…> (07/26/18 15:01:42)
git-committer:
Rob Schluntz <rschlunt@…> (07/30/18 16:43:47)
Message:

Minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r1be845b rf072892  
    12321232        void ArrayLength::previsit( ObjectDecl * objDecl ) {
    12331233                if ( ArrayType * at = dynamic_cast< ArrayType * >( objDecl->type ) ) {
    1234                         if ( at->get_dimension() ) return;
     1234                        if ( at->dimension ) return;
    12351235                        if ( ListInit * init = dynamic_cast< ListInit * >( objDecl->init ) ) {
    1236                                 at->set_dimension( new ConstantExpr( Constant::from_ulong( init->initializers.size() ) ) );
     1236                                at->dimension = new ConstantExpr( Constant::from_ulong( init->initializers.size() ) );
    12371237                        }
    12381238                }
Note: See TracChangeset for help on using the changeset viewer.