From b9ce660113e8da3ec747208f00d5b59c3407f2a0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 26 Jan 2018 21:35:42 -0500 Subject: [PATCH] reg_alloc: std::move RegAlloc's function argument --- src/backend_x64/reg_alloc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend_x64/reg_alloc.h b/src/backend_x64/reg_alloc.h index ff5a5004..b0f60a5b 100644 --- a/src/backend_x64/reg_alloc.h +++ b/src/backend_x64/reg_alloc.h @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -91,7 +92,7 @@ private: class RegAlloc final { public: explicit RegAlloc(BlockOfCode* code, size_t num_spills, std::function spill_to_addr) - : hostloc_info(NonSpillHostLocCount + num_spills), code(code), spill_to_addr(spill_to_addr) {} + : hostloc_info(NonSpillHostLocCount + num_spills), code(code), spill_to_addr(std::move(spill_to_addr)) {} std::array GetArgumentInfo(IR::Inst* inst);