[XLA/GPU] do not move local object in a return statement.
This commit is contained in:
parent
df783a99f8
commit
b27cbc3e7e
@ -1130,7 +1130,7 @@ HeapSimulator::Result<HloValue> AlternateMemoryBestFitHeap::Finish() {
|
||||
HeapSimulator::Result<HloValue> result;
|
||||
result.heap_size = result_.heap_size;
|
||||
result.heap_results.emplace_back(std::move(result_));
|
||||
return std::move(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void AlternateMemoryBestFitHeap::CreateAllocationValuesFromColocatedIntervals(
|
||||
|
Loading…
x
Reference in New Issue
Block a user