Changeset 9aaacc27


Ignore:
Timestamp:
Dec 13, 2018, 4:47:41 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
b3bd772
Parents:
83ab931
Message:

Fix segfault in some tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ResolveAssertions.cc

    r83ab931 r9aaacc27  
    203203                // place newly-inferred assertion in proper place in cache
    204204                inferred[ info.resnSlot ][ decl->get_uniqueId() ] = ParamEntry{
    205                                 candidate->get_uniqueId(), match.adjType, decl->get_type()->clone(), varExpr };
     205                                candidate->get_uniqueId(), match.adjType->clone(), decl->get_type()->clone(),
     206                                varExpr };
    206207
    207208                // // follow the current assertion's ID chain to find the correct set of inferred parameters
     
    271272                                        std::move(newNeed), std::move(newOpenVars), crntResnSlot );
    272273                        } else {
    273                                 delete adjType;
     274                                //delete adjType;
    274275                        }
    275276                }
Note: See TracChangeset for help on using the changeset viewer.