SWDEV-342067 - Fixes a minor coding error to loop through all the entries in the map

Change-Id: I837cb4868de2acd3e71ca9a745a62ed0bb2d1400


[ROCm/clr commit: 5ad38a32bf]
Этот коммит содержится в:
Sourabh Betigeri
2022-06-16 15:40:01 -07:00
коммит произвёл Sourabh Betigeri
родитель 1402d33098
Коммит 325aca33ad
+2 -2
Просмотреть файл
@@ -122,8 +122,8 @@ bool Heap::ReleaseAllMemory(hip::Stream* stream) {
// ================================================================================================
void Heap::RemoveStream(hip::Stream* stream) {
for (auto it = allocations_.begin(); it != allocations_.end();) {
it->second.safe_streams_.erase(stream);
for (auto it : allocations_) {
it.second.safe_streams_.erase(stream);
}
}