summaryrefslogtreecommitdiff
path: root/Source/Core/Common/BreakPoints.cpp
diff options
context:
space:
mode:
authorflacs <tilkax@gmail.com>2015-06-07 12:44:41 +0200
committerflacs <tilkax@gmail.com>2015-06-07 12:44:41 +0200
commitcab9f7b4da2fba17b63ac8d9df35647cdc0f2a00 (patch)
treec11650ee009cc3d850e56c42331c5cce3a6949f3 /Source/Core/Common/BreakPoints.cpp
parentfd391ca0788bbfe9a4c3538dbaf304ababa5ead4 (diff)
parent1214161ad96b97b2834c5754865a262596d3796d (diff)
Merge pull request #2548 from endrift/jit-nulls
Common: Add null checks when adding and removing breakpoints
Diffstat (limited to 'Source/Core/Common/BreakPoints.cpp')
-rw-r--r--Source/Core/Common/BreakPoints.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/BreakPoints.cpp b/Source/Core/Common/BreakPoints.cpp
index bb07722a9d..d69f561432 100644
--- a/Source/Core/Common/BreakPoints.cpp
+++ b/Source/Core/Common/BreakPoints.cpp
@@ -170,7 +170,7 @@ void MemChecks::Add(const TMemCheck& _rMemoryCheck)
m_MemChecks.push_back(_rMemoryCheck);
// If this is the first one, clear the JIT cache so it can switch to
// watchpoint-compatible code.
- if (!had_any)
+ if (!had_any && jit)
jit->ClearCache();
}
@@ -184,7 +184,7 @@ void MemChecks::Remove(u32 _Address)
return;
}
}
- if (!HasAny())
+ if (!HasAny() && jit)
jit->ClearCache();
}