diff --git a/Core/MIPS/MIPSAnalyst.cpp b/Core/MIPS/MIPSAnalyst.cpp index ee1d5403e6..7921d52497 100644 --- a/Core/MIPS/MIPSAnalyst.cpp +++ b/Core/MIPS/MIPSAnalyst.cpp @@ -547,7 +547,8 @@ skip: if (filename.empty()) filename = hashmapFileName; - if (!hashMap.size()) { + UpdateHashMap(); + if (hashMap.empty()) { return; } @@ -557,8 +558,6 @@ skip: return; } - UpdateHashMap(); - for (auto it = hashMap.begin(), end = hashMap.end(); it != end; ++it) { const HashMapFunc &mf = *it; if (fprintf(file, "%016llx:%d = %s\n", mf.hash, mf.size, mf.name) <= 0) {