summaryrefslogtreecommitdiff
path: root/src/intertyper.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-25 13:45:25 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-25 13:45:25 -0800
commitebe8a3a0c9662271ccdde5c05bd59a5e98964574 (patch)
tree1c427751d3b3ca3afc99cc2e01bd88110000b993 /src/intertyper.js
parent1edc791be84e53fb46b57770c67c6c7b54d2d58a (diff)
fix varargs calls in function pointers
Diffstat (limited to 'src/intertyper.js')
-rw-r--r--src/intertyper.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index c1b9b78e..b01d2a88 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -627,15 +627,12 @@ function intertyper(data, parseFunctions, baseLineNum) {
}
item.type = item.tokens[1].text;
Types.needAnalysis[item.type] = 0;
- item.functionType = '';
while (['@', '%'].indexOf(item.tokens[2].text[0]) == -1 && !(item.tokens[2].text in PARSABLE_LLVM_FUNCTIONS) &&
item.tokens[2].text != 'null') {
// We cannot compile assembly. If you hit this, perhaps tell the compiler not
// to generate arch-specific code? |-U__i386__ -U__x86_64__| might help, it undefines
// the standard archs.
assert(item.tokens[2].text != 'asm', 'Inline assembly cannot be compiled to JavaScript!');
-
- item.functionType += item.tokens[2].text;
item.tokens.splice(2, 1);
}
var tokensLeft = item.tokens.slice(2);