Changes in src/ResolvExpr/Resolver.cc [cad355a:4e06c1e]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
rcad355a r4e06c1e 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 12:17:01 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Fri May 13 11:36:40201613 // Update Count : 20 311 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 17:45:42 2016 13 // Update Count : 204 14 14 // 15 15 … … 49 49 virtual void visit( ForStmt *forStmt ); 50 50 virtual void visit( SwitchStmt *switchStmt ); 51 virtual void visit( ChooseStmt *switchStmt );52 51 virtual void visit( CaseStmt *caseStmt ); 53 52 virtual void visit( BranchStmt *branchStmt ); … … 302 301 303 302 void Resolver::visit( SwitchStmt *switchStmt ) { 304 handleSwitchStmt( switchStmt, *this );305 }306 307 void Resolver::visit( ChooseStmt *switchStmt ) {308 303 handleSwitchStmt( switchStmt, *this ); 309 304 } … … 550 545 // get Variable <array>, then get the base type of the VariableExpr - this is the type that needs to be fixed 551 546 Expression * arr = InitTweak::getCallArg( plusExpr, 0 ); 552 assert( dynamic_cast< VariableExpr * >( arr ) || dynamic_cast< MemberExpr *>( arr ));547 assert( dynamic_cast< VariableExpr * >( arr ) ); 553 548 assert( arr && arr->get_results().size() == 1 ); 554 549 type = arr->get_results().front()->clone(); … … 559 554 assert( constructee->get_results().size() == 1 ); 560 555 AddressExpr * addrExpr = dynamic_cast< AddressExpr * > ( constructee ); 561 assert( addrExpr && addrExpr->get_results().size() == 1 );556 assert( addrExpr && addrExpr->get_results().size() == 1); 562 557 type = addrExpr->get_results().front()->clone(); 563 558 }
Note:
See TracChangeset
for help on using the changeset viewer.