diff options
| author | flacs <tilkax@gmail.com> | 2015-08-15 00:59:19 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-08-15 00:59:19 +0200 |
| commit | d8d62336b5c644fd3de55543ded8504c3f237d8f (patch) | |
| tree | f6c793d3f436d1af12adfaa4dce211924d6c7e20 /Source/Core | |
| parent | 0674e344c432063042181efe5b4241a76b3eb105 (diff) | |
| parent | 8db43501d5e334278970cca1d52014dcf17a4b24 (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.cpp | 8 |
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); |
