Changes in src/SynTree/CompoundStmt.cc [e3e16bc:ea6332d]
- File:
-
- 1 edited
-
src/SynTree/CompoundStmt.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/CompoundStmt.cc
re3e16bc rea6332d 14 14 // 15 15 16 #include <cassert> // for assert, s trict_dynamic_cast16 #include <cassert> // for assert, safe_dynamic_cast 17 17 #include <list> // for list, _List_const_iterator, lis... 18 18 #include <ostream> // for operator<<, ostream, basic_ostream … … 52 52 Statement * origStmt = *origit++; 53 53 if ( DeclStmt * declStmt = dynamic_cast< DeclStmt * >( s ) ) { 54 DeclStmt * origDeclStmt = s trict_dynamic_cast< DeclStmt * >( origStmt );54 DeclStmt * origDeclStmt = safe_dynamic_cast< DeclStmt * >( origStmt ); 55 55 if ( DeclarationWithType * dwt = dynamic_cast< DeclarationWithType * > ( declStmt->get_decl() ) ) { 56 DeclarationWithType * origdwt = s trict_dynamic_cast< DeclarationWithType * > ( origDeclStmt->get_decl() );56 DeclarationWithType * origdwt = safe_dynamic_cast< DeclarationWithType * > ( origDeclStmt->get_decl() ); 57 57 assert( dwt->get_name() == origdwt->get_name() ); 58 58 declMap[ origdwt ] = dwt;
Note:
See TracChangeset
for help on using the changeset viewer.