Changeset 5e92fee
- Timestamp:
- Dec 14, 2015, 5:17:49 PM (9 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:
- 78dd0da
- Parents:
- db0b3ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
rdb0b3ce r5e92fee 653 653 addAssign->get_args().push_back( appExpr->get_args().front() ); 654 654 } // if 655 addAssign->get_args().push_back( new NameExpr( polyName ) );655 addAssign->get_args().push_back( new NameExpr( std::string("_sizeof_") + polyName ) ); 656 656 addAssign->get_results().front() = appExpr->get_results().front()->clone(); 657 657 if ( appExpr->get_env() ) { … … 680 680 UntypedExpr *multiply = new UntypedExpr( new NameExpr( "?*?" ) ); 681 681 multiply->get_args().push_back( appExpr->get_args().back() ); 682 multiply->get_args().push_back( new NameExpr( typeInst1->get_name() ) );682 multiply->get_args().push_back( new NameExpr( std::string("_sizeof_") + typeInst1->get_name() ) ); 683 683 ret->get_args().push_back( appExpr->get_args().front() ); 684 684 ret->get_args().push_back( multiply ); … … 686 686 UntypedExpr *multiply = new UntypedExpr( new NameExpr( "?*?" ) ); 687 687 multiply->get_args().push_back( appExpr->get_args().front() ); 688 multiply->get_args().push_back( new NameExpr( typeInst2->get_name() ) );688 multiply->get_args().push_back( new NameExpr( std::string("_sizeof_") + typeInst2->get_name() ) ); 689 689 ret->get_args().push_back( multiply ); 690 690 ret->get_args().push_back( appExpr->get_args().back() ); … … 749 749 UntypedExpr *divide = new UntypedExpr( new NameExpr( "?/?" ) ); 750 750 divide->get_args().push_back( appExpr ); 751 divide->get_args().push_back( new NameExpr( typeInst1->get_name() ) );751 divide->get_args().push_back( new NameExpr( std::string("_sizeof_") + typeInst1->get_name() ) ); 752 752 divide->get_results().push_front( appExpr->get_results().front()->clone() ); 753 753 if ( appExpr->get_env() ) { … … 759 759 UntypedExpr *multiply = new UntypedExpr( new NameExpr( "?*?" ) ); 760 760 multiply->get_args().push_back( appExpr->get_args().back() ); 761 multiply->get_args().push_back( new NameExpr( typeInst1->get_name() ) );761 multiply->get_args().push_back( new NameExpr( std::string("_sizeof_") + typeInst1->get_name() ) ); 762 762 appExpr->get_args().back() = multiply; 763 763 } else if ( typeInst2 ) { 764 764 UntypedExpr *multiply = new UntypedExpr( new NameExpr( "?*?" ) ); 765 765 multiply->get_args().push_back( appExpr->get_args().front() ); 766 multiply->get_args().push_back( new NameExpr( typeInst2->get_name() ) );766 multiply->get_args().push_back( new NameExpr( std::string("_sizeof_") + typeInst2->get_name() ) ); 767 767 appExpr->get_args().front() = multiply; 768 768 } // if … … 774 774 UntypedExpr *multiply = new UntypedExpr( new NameExpr( "?*?" ) ); 775 775 multiply->get_args().push_back( appExpr->get_args().back() ); 776 multiply->get_args().push_back( new NameExpr( typeInst->get_name() ) );776 multiply->get_args().push_back( new NameExpr( std::string("_sizeof_") + typeInst->get_name() ) ); 777 777 appExpr->get_args().back() = multiply; 778 778 } // if … … 1108 1108 assert( typeInst ); 1109 1109 UntypedExpr *alloc = new UntypedExpr( new NameExpr( "__builtin_alloca" ) ); 1110 alloc->get_args().push_back( new NameExpr( typeInst->get_name() ) );1110 alloc->get_args().push_back( new NameExpr( std::string("_sizeof_") + typeInst->get_name() ) ); 1111 1111 1112 1112 delete objectDecl->get_init();
Note: See TracChangeset
for help on using the changeset viewer.