Ignore:
Timestamp:
Mar 16, 2018, 5:15:02 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
8d7bef2
Parents:
6171841
git-author:
Aaron Moss <a3moss@…> (03/16/18 17:04:24)
git-committer:
Aaron Moss <a3moss@…> (03/16/18 17:15:02)
Message:

First pass at delete removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Virtual/ExpandCasts.cc

    r6171841 r68f9c43  
    139139                ObjectDecl * table = found->second;
    140140
    141                 Expression * result = new CastExpr(
     141                return new CastExpr{
    142142                        //new ApplicationExpr(
    143143                                //new AddressExpr( new VariableExpr( vcast_decl ) ),
     
    158158                                } ),
    159159                        castExpr->get_result()->clone()
    160                         );
    161 
    162                 castExpr->set_arg( nullptr );
    163                 castExpr->set_result( nullptr );
    164                 delete castExpr;
    165                 return result;
     160                };
    166161        }
    167162
Note: See TracChangeset for help on using the changeset viewer.