Changes in src/GenPoly/Box.cc [e3e16bc:bc3127d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
re3e16bc rbc3127d 15 15 16 16 #include <algorithm> // for mismatch 17 #include <cassert> // for assert, s trict_dynamic_cast17 #include <cassert> // for assert, safe_dynamic_cast 18 18 #include <iostream> // for operator<<, stringstream 19 19 #include <list> // for list, list<>::iterator, _Lis... … … 1299 1299 1300 1300 DeclarationWithType * Pass2::mutate( FunctionDecl *functionDecl ) { 1301 functionDecl = s trict_dynamic_cast< FunctionDecl * > ( handleDecl( functionDecl ) );1301 functionDecl = safe_dynamic_cast< FunctionDecl * > ( handleDecl( functionDecl ) ); 1302 1302 FunctionType * ftype = functionDecl->get_functionType(); 1303 1303 if ( ! ftype->get_returnVals().empty() && functionDecl->get_statements() ) { … … 1378 1378 // move polymorphic return type to parameter list 1379 1379 if ( isDynRet( funcType ) ) { 1380 ObjectDecl *ret = s trict_dynamic_cast< ObjectDecl* >( funcType->get_returnVals().front() );1380 ObjectDecl *ret = safe_dynamic_cast< ObjectDecl* >( funcType->get_returnVals().front() ); 1381 1381 ret->set_type( new PointerType( Type::Qualifiers(), ret->get_type() ) ); 1382 1382 funcType->get_parameters().push_front( ret );
Note:
See TracChangeset
for help on using the changeset viewer.