Changeset 5996


Ignore:
Timestamp:
Apr 28, 2018, 12:07:52 PM (16 months ago)
Author:
cameron
Message:

moving a temporary object prevents copy elision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/pipeline.cpp

    r5995 r5996  
    524524    }
    525525
    526     return pruneGraph(std::move(G), std::move(make_iterator_range(vertices(G))));
     526    return pruneGraph(std::move(G), make_iterator_range(vertices(G)));
    527527}
    528528
     
    584584    }
    585585
    586     return pruneGraph(std::move(G), std::move(boost::adaptors::reverse(make_iterator_range(vertices(G)))));
     586    return pruneGraph(std::move(G), boost::adaptors::reverse(make_iterator_range(vertices(G))));
    587587}
    588588
     
    699699        auto c = consumedItemCount.find(buffer);
    700700        if (c == consumedItemCount.end()) {
    701             const auto p = producedItemCount.find(buffer);
    702             assert (p != producedItemCount.end());
    703701            consumedItemCount.emplace(buffer, consumedPhi);
    704702        } else {
Note: See TracChangeset for help on using the changeset viewer.