diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-07 14:08:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-08 18:26:44 -0400 |
commit | 0e4520e0227f23316175ee9de9edb5c867859e8a (patch) | |
tree | ae65e5aab1fa34e5585dea0ebc0b94529d9afbc2 /src/intertyper.js | |
parent | b5f705842e51df9ae25be76feaf1495de8e4252c (diff) |
use ident in alloca intertype
Diffstat (limited to 'src/intertyper.js')
-rw-r--r-- | src/intertyper.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 09bdaa33..9e5f33c8 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -766,15 +766,13 @@ function intertyper(lines, sidePass, baseLineNums) { return item; } // 'alloca' - var allocaPossibleVars = ['allocatedNum']; function allocaHandler(item) { item.intertype = 'alloca'; item.allocatedType = item.tokens[1].text; if (item.tokens.length > 3 && Runtime.isNumberType(item.tokens[3].text)) { - item.allocatedNum = toNiceIdent(item.tokens[4].text); - item.possibleVars = allocaPossibleVars; + item.ident = toNiceIdent(item.tokens[4].text); } else { - item.allocatedNum = 1; + item.ident = 1; } item.type = addPointing(item.tokens[1].text); // type of pointer we will get Types.needAnalysis[item.type] = 0; |