diff --git a/Source/Core/Core/DSP/Jit/DSPEmitter.cpp b/Source/Core/Core/DSP/Jit/DSPEmitter.cpp index 627018adf5..4f46d36b53 100644 --- a/Source/Core/Core/DSP/Jit/DSPEmitter.cpp +++ b/Source/Core/Core/DSP/Jit/DSPEmitter.cpp @@ -22,7 +22,7 @@ using namespace Gen; -DSPEmitter::DSPEmitter() : gpr(*this), storeIndex(-1), storeIndex2(-1) +DSPEmitter::DSPEmitter() { AllocCodeSpace(COMPILED_CODE_SIZE); diff --git a/Source/Core/Core/DSP/Jit/DSPEmitter.h b/Source/Core/Core/DSP/Jit/DSPEmitter.h index 25aa8e3ceb..c6951f7829 100644 --- a/Source/Core/Core/DSP/Jit/DSPEmitter.h +++ b/Source/Core/Core/DSP/Jit/DSPEmitter.h @@ -247,7 +247,7 @@ public: u16* blockSize; std::list unresolvedJumps[MAX_BLOCKS]; - DSPJitRegCache gpr; + DSPJitRegCache gpr{*this}; private: DSPCompiledCode* blocks; @@ -255,8 +255,8 @@ private: u16 compileSR; // The index of the last stored ext value (compile time). - int storeIndex; - int storeIndex2; + int storeIndex = -1; + int storeIndex2 = -1; // Counts down. // int cycles;