diff options
-rw-r--r-- | src/intertyper.js | 2 | ||||
-rw-r--r-- | tests/cases/unannotated.ll | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 8b889b80..069ef354 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -864,7 +864,7 @@ function intertyper(data, parseFunctions, baseLineNum) { // external function stub substrate.addActor('External', { processItem: function(item) { - if (item.tokens[1].text in LLVM.LINKAGES || item.tokens[1].text in LLVM.PARAM_ATTR || item.tokens[1].text in LLVM.VISIBILITIES || item.tokens[1].text in LLVM.CALLING_CONVENTIONS) { + while (item.tokens[1].text in LLVM.LINKAGES || item.tokens[1].text in LLVM.PARAM_ATTR || item.tokens[1].text in LLVM.VISIBILITIES || item.tokens[1].text in LLVM.CALLING_CONVENTIONS) { item.tokens.splice(1, 1); } var params = parseParamTokens(item.tokens[3].item.tokens); diff --git a/tests/cases/unannotated.ll b/tests/cases/unannotated.ll index 96ce5468..50cd4bf0 100644 --- a/tests/cases/unannotated.ll +++ b/tests/cases/unannotated.ll @@ -4,6 +4,8 @@ target triple = "i386-unknown-linux-gnu" @.str = private unnamed_addr constant [6 x i8] c"test\0A\00" +declare hidden zeroext i1 @_OptionParser(i8*, i8) ; separate test: check that we can compile this line (zeroext confused us) + define i32 @main() nounwind { %1 = alloca i32, align 4 store i32 0, i32* %1 |