diff options
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index cedfeaad..f2ef3374 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -337,7 +337,7 @@ function parseParamTokens(params) { value: null, ident: toNiceIdent('%') + anonymousIndex }); - Types.needAnalysis[ret.type] = 0; + Types.needAnalysis[ret[ret.length-1].type] = 0; anonymousIndex ++; } } else if (segment[1].text in PARSABLE_LLVM_FUNCTIONS) { @@ -358,9 +358,7 @@ function parseParamTokens(params) { value: segment[1], ident: toNiceIdent(parseNumerical(segment[1].text)) }); - Types.needAnalysis[ret.type] = 0; - // } else { - // throw "what is this params token? " + JSON.stringify(segment); + Types.needAnalysis[removeAllPointing(ret[ret.length-1].type)] = 0; } ret[ret.length-1].byVal = byVal; } |