Changeset d75038c
- Timestamp:
 - Apr 5, 2016, 4:54:48 PM (10 years ago)
 - Branches:
 - ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
 - Children:
 - ae7014e
 - Parents:
 - afc1045
 - File:
 - 
      
- 1 edited
 
- 
          
  src/GenPoly/Box.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/GenPoly/Box.cc
rafc1045 rd75038c 754 754 // zero-length arrays are forbidden by C, so don't pass offset for empty struct 755 755 if ( ! argBaseStructType->get_baseStruct()->get_members().empty() ) { 756 arg = appExpr->get_args().insert( arg, new OffsetPackExpr( argBaseStructType ) );756 arg = appExpr->get_args().insert( arg, new OffsetPackExpr( argBaseStructType->clone() ) ); 757 757 arg++; 758 758 } … … 1641 1641 layoutCall->get_args().push_back( new NameExpr( alignofName( *param ) ) ); 1642 1642 } else { 1643 layoutCall->get_args().push_back( new SizeofExpr( *param) );1644 layoutCall->get_args().push_back( new AlignofExpr( *param) );1643 layoutCall->get_args().push_back( new SizeofExpr( (*param)->clone() ) ); 1644 layoutCall->get_args().push_back( new AlignofExpr( (*param)->clone() ) ); 1645 1645 } 1646 1646 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.