From 2c750024dbfee7065a05bc1f9014b16f85857af6 Mon Sep 17 00:00:00 2001 From: kobalicek Date: Fri, 26 Sep 2014 01:07:53 +0200 Subject: [PATCH] Fixed ConstPool traversing bug. --- src/asmjit/base/constpool.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asmjit/base/constpool.h b/src/asmjit/base/constpool.h index c2c77c4..8f66b8b 100644 --- a/src/asmjit/base/constpool.h +++ b/src/asmjit/base/constpool.h @@ -128,9 +128,12 @@ struct ConstPoolTree { if (link != NULL) { ASMJIT_ASSERT(top != kHeightLimit); stack[top++] = node; + + node = link; continue; } +_Visit: visitor.visit(node); link = node->_link[1]; @@ -143,6 +146,7 @@ struct ConstPoolTree { break; node = stack[--top]; + goto _Visit; } }