diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp index e9d11e99f3..f9125da873 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp @@ -1105,7 +1105,9 @@ unsigned IRBuilder::getComplexity(InstLoc I) const { unsigned IRBuilder::getNumberOfOperands(InstLoc I) const { static unsigned numberOfOperands[256]; - if (numberOfOperands[0] == 0) { + static bool initialized = false; + if (!initialized) { + initialized = true; std::fill_n(numberOfOperands, sizeof(numberOfOperands) / sizeof(numberOfOperands[0]), -1U); numberOfOperands[Nop] = 0;