From 276da301e6803023560164679c48fc0e07f2b8d2 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Thu, 15 Jul 2021 16:13:58 +0200 Subject: [PATCH] aco/spill: Replace map[] with map::insert MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_spill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_spill.cpp b/src/amd/compiler/aco_spill.cpp index 4995121..646b492 100644 --- a/src/amd/compiler/aco_spill.cpp +++ b/src/amd/compiler/aco_spill.cpp @@ -362,7 +362,7 @@ local_next_uses(spill_ctx& ctx, Block* block) std::map next_uses; for (std::pair>& pair : ctx.next_use_distances_end[block->index]) - next_uses[pair.first] = pair.second.second + block->instructions.size(); + next_uses.insert({pair.first, pair.second.second + block->instructions.size()}); for (int idx = block->instructions.size() - 1; idx >= 0; idx--) { aco_ptr& instr = block->instructions[idx]; -- 2.7.4