Created
October 12, 2011 02:52
-
-
Save kripken/1280126 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/intertyper.js b/src/intertyper.js | |
index 74f38e3..9fd03bb 100644 | |
--- a/src/intertyper.js | |
+++ b/src/intertyper.js | |
@@ -615,15 +615,16 @@ function intertyper(data, parseFunctions, baseLineNum) { | |
} | |
while (item.tokens[1].text in LLVM.PARAM_ATTR || item.tokens[1].text in LLVM.CALLING_CONVENTIONS) { | |
item.tokens.splice(1, 1); | |
} | |
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)) { | |
+ 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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment