Skip to content

Commit

Permalink
Core: Fix potentially uninitialized variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lioncash committed Oct 28, 2014
1 parent 91c4b0c commit 934d1c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/PowerPC/JitInterface.cpp
Expand Up @@ -242,7 +242,7 @@ namespace JitInterface
if (!jit)
return;

std::unordered_set<u32> *exception_addresses;
std::unordered_set<u32>* exception_addresses = nullptr;

switch (type)
{
Expand All @@ -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()))
Expand Down

0 comments on commit 934d1c2

Please sign in to comment.