Changeset 108f3cdb for src/ResolvExpr/CastCost.cc
- Timestamp:
- Sep 12, 2017, 10:45:01 AM (7 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:
- 93389c1
- Parents:
- 1395748
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CastCost.cc
r1395748 r108f3cdb 45 45 } 46 46 } else if ( ( namedType = indexer.lookupType( destAsTypeInst->get_name() ) ) ) { 47 TypeDecl *type = dynamic_cast< TypeDecl* >( namedType );48 47 // all typedefs should be gone by this point 49 assert( type );48 TypeDecl *type = safe_dynamic_cast< TypeDecl* >( namedType ); 50 49 if ( type->get_base() ) { 51 50 return castCost( src, type->get_base(), indexer, env ) + Cost::safe;
Note: See TracChangeset
for help on using the changeset viewer.