Ignore:
Timestamp:
Jun 1, 2021, 2:22:09 PM (14 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr
Children:
1f68d5d
Parents:
93f74c0f
Message:

Removed unnecessary copy in loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/TypeEnvironment.cpp

    r93f74c0f r68ff3de  
    115115
    116116void TypeEnvironment::add( const TypeSubstitution & sub ) {
    117         for ( const auto p : sub ) {
     117        for ( const auto & p : sub ) {
    118118                add( EqvClass{ p.first, p.second } );
    119119        }
Note: See TracChangeset for help on using the changeset viewer.