From f6a049337ec17dee986e28fc050ddbe55bd2ac70 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 26 Jan 2022 16:29:13 -0500 Subject: common/xbyak_api: Make BuildRegSet() constexpr This allows us to eliminate any static constructors that would have been emitted due to the function not being constexpr. --- src/video_core/macro/macro_jit_x64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core/macro/macro_jit_x64.cpp') diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp index 924c9fe5c..47b28ad16 100644 --- a/src/video_core/macro/macro_jit_x64.cpp +++ b/src/video_core/macro/macro_jit_x64.cpp @@ -29,7 +29,7 @@ constexpr Xbyak::Reg64 PARAMETERS = Xbyak::util::r12; constexpr Xbyak::Reg32 METHOD_ADDRESS = Xbyak::util::r14d; constexpr Xbyak::Reg64 BRANCH_HOLDER = Xbyak::util::r15; -const std::bitset<32> PERSISTENT_REGISTERS = Common::X64::BuildRegSet({ +constexpr std::bitset<32> PERSISTENT_REGISTERS = Common::X64::BuildRegSet({ STATE, RESULT, PARAMETERS, -- cgit v1.2.3