Explicitly use std::move to make clang 3.5 compile

This commit is contained in:
Fangrui Song 2018-01-20 19:19:19 -08:00
parent a57798154d
commit b5c9e22ad1
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ struct TestIndexer : IIndexer {
// specific file (atm it is always 1) // specific file (atm it is always 1)
auto result = std::move(it->second); auto result = std::move(it->second);
indexes.erase(it); indexes.erase(it);
return result; return std::move(result);
} }
std::unordered_map<std::string, std::vector<std::unique_ptr<IndexFile>>> std::unordered_map<std::string, std::vector<std::unique_ptr<IndexFile>>>

View File

@ -1904,7 +1904,7 @@ optional<std::vector<std::unique_ptr<IndexFile>>> Parse(
ClangIndex* index, ClangIndex* index,
bool dump_ast) { bool dump_ast) {
if (!config->enableIndexing) if (!config->enableIndexing)
return {}; return nullopt;
file = NormalizePath(file); file = NormalizePath(file);