Changeset 7ba1324


Ignore:
Timestamp:
Sep 6, 2018, 10:46:45 AM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
ec42ff2e
Parents:
b867278
Message:

Use insert to add to TyVarMap? instead of operator[]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/GenPoly.cc

    rb867278 r7ba1324  
    459459
    460460        void addToTyVarMap( TypeDecl * tyVar, TyVarMap &tyVarMap ) {
    461                 // xxx - should this actually be insert?
    462                 tyVarMap[ tyVar->get_name() ] = TypeDecl::Data{ tyVar };
     461                tyVarMap.insert( tyVar->name, TypeDecl::Data{ tyVar } );
    463462        }
    464463
Note: See TracChangeset for help on using the changeset viewer.