Changeset ba54f7d for src/GenPoly
- Timestamp:
- Sep 13, 2017, 3:11:24 PM (8 years ago)
- 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:
- c57ded70, db70fe4
- Parents:
- d130fe8 (diff), 982832e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/GenPoly
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
rd130fe8 rba54f7d 15 15 16 16 #include <algorithm> // for mismatch 17 #include <cassert> // for assert, s afe_dynamic_cast17 #include <cassert> // for assert, strict_dynamic_cast 18 18 #include <iostream> // for operator<<, stringstream 19 19 #include <list> // for list, list<>::iterator, _Lis... … … 1305 1305 1306 1306 DeclarationWithType * Pass2::mutate( FunctionDecl *functionDecl ) { 1307 functionDecl = s afe_dynamic_cast< FunctionDecl * > ( handleDecl( functionDecl ) );1307 functionDecl = strict_dynamic_cast< FunctionDecl * > ( handleDecl( functionDecl ) ); 1308 1308 FunctionType * ftype = functionDecl->get_functionType(); 1309 1309 if ( ! ftype->get_returnVals().empty() && functionDecl->get_statements() ) { … … 1384 1384 // move polymorphic return type to parameter list 1385 1385 if ( isDynRet( funcType ) ) { 1386 ObjectDecl *ret = s afe_dynamic_cast< ObjectDecl* >( funcType->get_returnVals().front() );1386 ObjectDecl *ret = strict_dynamic_cast< ObjectDecl* >( funcType->get_returnVals().front() ); 1387 1387 ret->set_type( new PointerType( Type::Qualifiers(), ret->get_type() ) ); 1388 1388 funcType->get_parameters().push_front( ret ); -
src/GenPoly/InstantiateGeneric.cc
rd130fe8 rba54f7d 459 459 Declaration * member = *std::next( aggr->members.begin(), memberIndex ); 460 460 assertf( member->name == memberExpr->member->name, "Instantiation has different member order than the generic type. %s / %s", toString( member ).c_str(), toString( memberExpr->member ).c_str() ); 461 DeclarationWithType * field = s afe_dynamic_cast< DeclarationWithType * >( member );461 DeclarationWithType * field = strict_dynamic_cast< DeclarationWithType * >( member ); 462 462 MemberExpr * ret = new MemberExpr( field, memberExpr->aggregate->clone() ); 463 463 std::swap( ret->env, memberExpr->env ); -
src/GenPoly/Lvalue.cc
rd130fe8 rba54f7d 14 14 // 15 15 16 #include <cassert> // for s afe_dynamic_cast16 #include <cassert> // for strict_dynamic_cast 17 17 #include <string> // for string 18 18
Note:
See TracChangeset
for help on using the changeset viewer.