From bde1d14f259a501e4de5de668ef9496d7241738c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 27 Dec 2013 00:29:37 -0800 Subject: [PATCH] Update hashmap before deciding to abort. Otherwise, if you delete it, it can never generate one. --- Core/MIPS/MIPSAnalyst.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) {