Ignore:
Timestamp:
May 31, 2018, 4:24:49 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
0182bfa, 1d7b0a8
Parents:
75308bcc
Message:

stop eagerly copying EqvClass? on lookup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AdjustExprType.cc

    r75308bcc r8e18b8e  
    7474
    7575        Type * AdjustExprType::postmutate( TypeInstType * typeInst ) {
    76                 EqvClass eqvClass;
    77                 if ( env.lookup( typeInst->get_name(), eqvClass ) ) {
    78                         if ( eqvClass.data.kind == TypeDecl::Ftype ) {
     76                if ( const EqvClass* eqvClass = env.lookup( typeInst->get_name() ) ) {
     77                        if ( eqvClass->data.kind == TypeDecl::Ftype ) {
    7978                                return new PointerType{ Type::Qualifiers(), typeInst };
    8079                        }
Note: See TracChangeset for help on using the changeset viewer.