handle function calls to null (at compile-time..)

This commit is contained in:
Alon Zakai 2011-10-12 17:52:09 -07:00
Родитель abcb33f7c1
Коммит 7cfb4392ed
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -619,7 +619,8 @@ 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)) {
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.