From 7c9bba2213ffd2bcbc9d298c7f8699ac32c8a423 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 13 Sep 2016 21:45:23 +0200 Subject: [PATCH] Arm64Emitter: Fix std::array initializer. --- Source/Core/Common/Arm64Emitter.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Core/Common/Arm64Emitter.cpp b/Source/Core/Common/Arm64Emitter.cpp index d49c799744..b2f546d448 100644 --- a/Source/Core/Common/Arm64Emitter.cpp +++ b/Source/Core/Common/Arm64Emitter.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include +#include #include #include @@ -200,10 +201,10 @@ bool IsImmLogical(uint64_t value, unsigned int width, unsigned int* n, unsigned // To repeat a value every d bits, we multiply it by a number of the form // (1 + 2^d + 2^(2d) + ...), i.e. 0x0001000100010001 or similar. These can // be derived using a table lookup on CLZ(d). - static const std::array multipliers = { - 0x0000000000000001UL, 0x0000000100000001UL, 0x0001000100010001UL, - 0x0101010101010101UL, 0x1111111111111111UL, 0x5555555555555555UL, - }; + static const std::array multipliers = {{ + 0x0000000000000001UL, 0x0000000100000001UL, 0x0001000100010001UL, 0x0101010101010101UL, + 0x1111111111111111UL, 0x5555555555555555UL, + }}; int multiplier_idx = CountLeadingZeros(d, kXRegSizeInBits) - 57;