From ec9d3de1e8979607c98de5da5c89efa95472c633 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 1 Sep 2011 18:40:54 -0700 Subject: fix intertyper parsing bug --- src/intertyper.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/intertyper.js') diff --git a/src/intertyper.js b/src/intertyper.js index 3cdaa45e..5dd395bc 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -634,9 +634,10 @@ function intertyper(data, parseFunctions, baseLineNum) { } item.ident = toNiceIdent(item.ident); if (type === 'invoke') { - cleanOutTokens(LLVM.INVOKE_MODIFIERS, item.tokens, 4); - item.toLabel = toNiceIdent(item.tokens[6].text); - item.unwindLabel = toNiceIdent(item.tokens[9].text); + var toIndex = findTokenText(item, 'to'); + item.toLabel = toNiceIdent(item.tokens[toIndex+2].text); + item.unwindLabel = toNiceIdent(item.tokens[toIndex+5].text); + assert(item.toLabel && item.unwindLabel); } if (item.indent == 2) { // standalone call - not in assign -- cgit v1.2.3-18-g5258