From c9797dde2a7d847eaf2a7e62ba09d260799a3c10 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 18 Nov 2018 11:35:23 -0600 Subject: [PATCH] [CPU] Fix switch variable scoping --- src/xenia/cpu/hir/value.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/hir/value.cc b/src/xenia/cpu/hir/value.cc index a2613e3e9..ed79d65a2 100644 --- a/src/xenia/cpu/hir/value.cc +++ b/src/xenia/cpu/hir/value.cc @@ -1380,7 +1380,7 @@ void Value::VectorAverage(Value* other, TypeName type, bool is_unsigned, bool saturate) { assert_true(this->type == VEC128_TYPE && other->type == VEC128_TYPE); switch (type) { - case INT16_TYPE: + case INT16_TYPE: { // TODO(gibbed): is this correct? alignas(16) int8_t result[16]; __m128i src1 = @@ -1390,7 +1390,7 @@ void Value::VectorAverage(Value* other, TypeName type, bool is_unsigned, __m128i dest = _mm_avg_epu16(src1, src2); _mm_store_si128(reinterpret_cast<__m128i*>(result), dest); std::memcpy(constant.v128.i8, result, sizeof(result)); - break; + } break; default: assert_unhandled_case(type); break;