Changeset 504eb72 for src/ResolvExpr


Ignore:
Timestamp:
Jul 24, 2019, 5:30:32 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
2890212
Parents:
96ac72c
Message:

Change node which was static to function to static ast::ptr to heap allocated node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.cc

    r96ac72c r504eb72  
    693693void ConversionCost_new::postvisit( const ast::EnumInstType * enumInstType ) {
    694694        (void)enumInstType;
    695         static const ast::BasicType integer( ast::BasicType::SignedInt );
    696         cost = costCalc( &integer, dst, symtab, env );
     695        static ast::ptr<ast::BasicType> integer = { new ast::BasicType( ast::BasicType::SignedInt ) };
     696        cost = costCalc( integer, dst, symtab, env );
    697697        if ( cost < Cost::unsafe ) {
    698698                cost.incSafe();
Note: See TracChangeset for help on using the changeset viewer.