Changeset 7d7ef6f for src/AST/Decl.cpp


Ignore:
Timestamp:
Feb 17, 2022, 2:35:23 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
a556492
Parents:
51b8582
Message:

Revereted some changes and added a fix to get around the current issue (traits can't refer to traits with the same polymorphic arguments).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.cpp

    r51b8582 r7d7ef6f  
    3939        if ( uniqueId ) return;  // ensure only set once
    4040        uniqueId = ++lastUniqueId;
    41         //idMap[ uniqueId ] = this;
     41        // The extra readonly pointer is causing some reference counting issues.
     42        // idMap[ uniqueId ] = this;
    4243}
    4344
    4445readonly<Decl> Decl::fromId( UniqueId id ) {
     46        // Right now this map is always empty, so don't use it.
    4547        assert( false );
    4648        IdMapType::const_iterator i = idMap.find( id );
Note: See TracChangeset for help on using the changeset viewer.