Changeset f072892 for src/SymTab
- Timestamp:
- Jul 30, 2018, 4:43:47 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r1be845b rf072892 1232 1232 void ArrayLength::previsit( ObjectDecl * objDecl ) { 1233 1233 if ( ArrayType * at = dynamic_cast< ArrayType * >( objDecl->type ) ) { 1234 if ( at-> get_dimension()) return;1234 if ( at->dimension ) return; 1235 1235 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() ) ); 1237 1237 } 1238 1238 }
Note:
See TracChangeset
for help on using the changeset viewer.