Assign the iterator

[ROCm/clr commit: 84d6eb985d]
This commit is contained in:
Paul
2020-02-06 12:15:29 -06:00
parent c9f66e4ae5
commit 1ee03c9db9
+2 -1
View File
@@ -419,7 +419,8 @@ public:
decltype(code_readers.second)::iterator it;
{
std::lock_guard<std::mutex> lck{code_readers.first};
it = code_readers.second.emplace_back(move(file), move(tmp));
code_readers.second.emplace_back(move(file), move(tmp));
it = std::prev(code_readers.second.end());
}
auto check_hsa_error = [](hsa_status_t s) {