Changeset 175ad32


Ignore:
Timestamp:
Jul 27, 2017, 2:05:36 PM (4 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, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
1461809
Parents:
7d49b72
Message:

Fix construction of multi-dimensional arrays by removing address-of from index increment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r7d49b72 r175ad32  
    170170
    171171                        UntypedExpr * increment = new UntypedExpr( new NameExpr( "++?" ) );
    172                         increment->get_args().push_back( new AddressExpr( index->clone() ) );
     172                        increment->get_args().push_back( index->clone() );
    173173                        *out++ = new ExprStmt( noLabels, increment );
    174174                }
Note: See TracChangeset for help on using the changeset viewer.