summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-03-07 18:11:00 +1300
committerGitHub <noreply@github.com>2017-03-07 18:11:00 +1300
commit52f22e240bf5a772b313abe87a970f62785e13c6 (patch)
treef843eb2874cd6cf5bf0b5b81aff443c9108f4f8b /Source/Core
parent4d02d38bf033647c5feedd5f98e6626d57b372cb (diff)
parenta9c570a9f8397137b4c684c07308ba942d855be4 (diff)
Merge pull request #5031 from lioncash/cast
CachedInterpreter: Get rid of an unnecessary cast
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp2
1 files changed, 1 insertions, 1 deletions
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;