fix(library/module_mgr): do not perform unnecessary copy

This commit is contained in:
Gabriel Ebner 2016-12-12 11:06:45 -05:00 committed by Leonardo de Moura
parent 028bf36152
commit cf3f398753

View file

@ -61,7 +61,7 @@ public:
module_info::parse_result execute() override {
module_loader import_fn = [=] (module_id const & base, module_name const & import) {
for (auto d : m_deps) {
for (auto & d : m_deps) {
if (std::get<0>(d) == base &&
std::get<1>(d).m_name == import.m_name &&
std::get<1>(d).m_relative == import.m_relative) {