Changeset 7ba1324


Ignore:
Timestamp:
Sep 6, 2018, 10:46:45 AM (3 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
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.