From 89ad9df0e92b0d479c09a69b10988358da384b64 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 26 Jul 2021 04:01:01 -0400 Subject: object_pool: Add missing return in Chunk move assignment operator Prevents undefined behavior from occurring. --- src/shader_recompiler/object_pool.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shader_recompiler/object_pool.h') diff --git a/src/shader_recompiler/object_pool.h b/src/shader_recompiler/object_pool.h index f8b255b66..f3b12d04b 100644 --- a/src/shader_recompiler/object_pool.h +++ b/src/shader_recompiler/object_pool.h @@ -63,6 +63,7 @@ private: used_objects = std::exchange(rhs.used_objects, 0); num_objects = std::exchange(rhs.num_objects, 0); storage = std::move(rhs.storage); + return *this; } Chunk(Chunk&& rhs) noexcept -- cgit v1.2.3