diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp index 88a2eb3cc3ae..e694fc23c2f7 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp @@ -66,7 +66,7 @@ void JitILBase::bx(UGeckoInstruction inst) static IREmitter::InstLoc EmitCRTest(IREmitter::IRBuilder& ibuild, UGeckoInstruction inst) { IREmitter::InstLoc CRReg = ibuild.EmitLoadCR(inst.BI >> 2); - IREmitter::InstLoc CRTest; + IREmitter::InstLoc CRTest = nullptr; switch (3 - (inst.BI & 3)) { case CR_SO_BIT: diff --git a/Source/Core/Core/PowerPC/JitInterface.cpp b/Source/Core/Core/PowerPC/JitInterface.cpp index fd7392f6b3ed..45f7d649ff85 100644 --- a/Source/Core/Core/PowerPC/JitInterface.cpp +++ b/Source/Core/Core/PowerPC/JitInterface.cpp @@ -242,7 +242,7 @@ namespace JitInterface if (!jit) return; - std::unordered_set *exception_addresses; + std::unordered_set* exception_addresses = nullptr; switch (type) { @@ -253,6 +253,7 @@ namespace JitInterface } default: ERROR_LOG(POWERPC, "Unknown exception check type"); + return; } if (PC != 0 && (exception_addresses->find(PC)) == (exception_addresses->end()))