From d38a6d646be9ba6eb55a9dbca50c9ea9c6e7b764 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 1 Jun 2013 11:45:11 -0700 Subject: do not leak split blocks --- src/relooper/Relooper.cpp | 1 + tools/shared.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/relooper/Relooper.cpp b/src/relooper/Relooper.cpp index b6425ce5..65d4eca0 100644 --- a/src/relooper/Relooper.cpp +++ b/src/relooper/Relooper.cpp @@ -389,6 +389,7 @@ void Relooper::Calculate(Block *Entry) { for (BlockSet::iterator iter = Original->BranchesIn.begin(); iter != Original->BranchesIn.end(); iter++) { Block *Prior = *iter; Block *Split = new Block(Original->Code); + Parent->Blocks.push_back(Split); PrintDebug(" to %d\n", Split->Id); Split->BranchesIn.insert(Prior); Branch *Details = Prior->BranchesOut[Original]; diff --git a/tools/shared.py b/tools/shared.py index db185e25..f9d93289 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -295,7 +295,7 @@ def check_node_version(): # we re-check sanity when the settings are changed) # We also re-check sanity and clear the cache when the version changes -EMSCRIPTEN_VERSION = '1.4.4' +EMSCRIPTEN_VERSION = '1.4.5' def generate_sanity(): return EMSCRIPTEN_VERSION + '|' + get_llvm_target() -- cgit v1.2.3-18-g5258