Changeset 66f8528 for src/SymTab
- Timestamp:
- Dec 15, 2016, 5:16:42 PM (8 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 43385ca, f7ff3fb
- Parents:
- 5802a4f (diff), 596f987b (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.h
r5802a4f r66f8528 88 88 if ( forward ) { 89 89 // generate: for ( int i = 0; i < 0; ++i ) 90 begin = new NameExpr( "0");90 begin = new ConstantExpr( Constant( new ZeroType( emptyQualifiers ), "0" ) ); 91 91 end = array->get_dimension()->clone(); 92 92 cmp = new NameExpr( "?<?" ); … … 96 96 begin = new UntypedExpr( new NameExpr( "?-?" ) ); 97 97 ((UntypedExpr*)begin)->get_args().push_back( array->get_dimension()->clone() ); 98 ((UntypedExpr*)begin)->get_args().push_back( new NameExpr( "1") );99 end = new NameExpr( "0");98 ((UntypedExpr*)begin)->get_args().push_back( new ConstantExpr( Constant( new OneType( emptyQualifiers ), "1" ) ) ); 99 end = new ConstantExpr( Constant( new ZeroType( emptyQualifiers ), "0" ) ); 100 100 cmp = new NameExpr( "?>=?" ); 101 101 update = new NameExpr( "--?" ); … … 175 175 } // namespace SymTab 176 176 #endif // AUTOGEN_H 177
Note: See TracChangeset
for help on using the changeset viewer.