summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorflacs <tilkax@gmail.com>2015-08-15 00:59:19 +0200
committerflacs <tilkax@gmail.com>2015-08-15 00:59:19 +0200
commitd8d62336b5c644fd3de55543ded8504c3f237d8f (patch)
treef6c793d3f436d1af12adfaa4dce211924d6c7e20 /Source/Core
parent0674e344c432063042181efe5b4241a76b3eb105 (diff)
parent8db43501d5e334278970cca1d52014dcf17a4b24 (diff)
Merge pull request #2849 from lioncash/cond
JitInterface: Fix null checking in GetProfileResults
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/JitInterface.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/Core/PowerPC/JitInterface.cpp b/Source/Core/Core/PowerPC/JitInterface.cpp
index df8f87bea0..5ea59517a5 100644
--- a/Source/Core/Core/PowerPC/JitInterface.cpp
+++ b/Source/Core/Core/PowerPC/JitInterface.cpp
@@ -133,15 +133,15 @@ namespace JitInterface
void GetProfileResults(ProfileStats* prof_stats)
{
+ // Can't really do this with no jit core available
+ if (!jit)
+ return;
+
prof_stats->cost_sum = 0;
prof_stats->timecost_sum = 0;
prof_stats->block_stats.clear();
prof_stats->block_stats.reserve(jit->GetBlockCache()->GetNumBlocks());
- // Can't really do this with no jit core available
- if (!jit)
- return;
-
Core::EState old_state = Core::GetState();
if (old_state == Core::CORE_RUN)
Core::SetState(Core::CORE_PAUSE);