Changeset 175ad32b for src/InitTweak


Ignore:
Timestamp:
Jul 27, 2017, 2:05:36 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
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 r175ad32b  
    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.