Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r2c04369 r6f4b7f2  
    1010// Created On       : Thu May 09 15::37::05 2019
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Tue May 28 12:00:00 2019
    13 // Update Count     : 7
     12// Last Modified On : Thu May 23 16:59:00 2019
     13// Update Count     : 6
    1414//
    1515
     
    13411341                if ( ! old ) return nullptr;
    13421342                old->accept(*this);
    1343                 ast::Node * ret = node;
    1344                 node = nullptr;
    1345                 return strict_dynamic_cast< NewT * >( ret );
     1343                return strict_dynamic_cast< NewT * >( node );
    13461344        }
    13471345
     
    13561354                        a->accept( *this );
    13571355                        ret.emplace_back( strict_dynamic_cast< NewT * >(node) );
    1358                         node = nullptr;
    13591356                }
    13601357                return ret;
     
    18801877                        GET_LABELS_V(old->labels)
    18811878                );
    1882                 cache.emplace( old, stmt );
     1879                this->node = stmt;
     1880                cache.emplace( old, this->node );
    18831881                stmt->callStmt = GET_ACCEPT_1(callStmt, Stmt);
    1884                 this->node = stmt;
    18851882        }
    18861883
Note: See TracChangeset for help on using the changeset viewer.