From eb72a746b99bee22e8020fca46ac3ea7af6574ed Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 25 Jul 2016 00:21:01 +0200 Subject: [PATCH] Fix one possible (reproducible!) startup crash in IRJit. May help #8848 --- Core/MIPS/IR/IRJit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/IR/IRJit.h b/Core/MIPS/IR/IRJit.h index b15b376956c9..ba26c9abeaac 100644 --- a/Core/MIPS/IR/IRJit.h +++ b/Core/MIPS/IR/IRJit.h @@ -121,6 +121,7 @@ class IRBlock { class IRBlockCache { public: + IRBlockCache() : size_(0) {} void Clear(); void InvalidateICache(u32 address, u32 length); int GetNumBlocks() const { return (int)blocks_.size(); } @@ -141,7 +142,7 @@ class IRBlockCache { void RestoreSavedEmuHackOps(std::vector saved); private: - int size_; + int size_; // Hm, is this a cache for speed in debug mode, or what? std::vector blocks_; };