From a9c570a9f8397137b4c684c07308ba942d855be4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 6 Mar 2017 13:18:44 -0500 Subject: [PATCH] CachedInterpreter: Get rid of an unnecessary cast This is only ever used to read a value and not modify data, so this can just be constructed by value. --- .../Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp index 80b3fa9c13..258c3af095 100644 --- a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp +++ b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp @@ -146,7 +146,7 @@ static void WriteBrokenBlockNPC(UGeckoInstruction data) static bool CheckFPU(u32 data) { - UReg_MSR& msr = (UReg_MSR&)MSR; + UReg_MSR msr{MSR}; if (!msr.FP) { PowerPC::ppcState.Exceptions |= EXCEPTION_FPU_UNAVAILABLE;