[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 30 14:59:03 PST 2004
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.159 -> 1.160
---
Log message:
Fix bug: Assembler/2004-03-30-UnclosedFunctionCrash.llx
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.159 llvm/lib/AsmParser/llvmAsmParser.y:1.160
--- llvm/lib/AsmParser/llvmAsmParser.y:1.159 Thu Mar 11 23:51:36 2004
+++ llvm/lib/AsmParser/llvmAsmParser.y Tue Mar 30 14:58:25 2004
@@ -1992,7 +1992,7 @@
= std::string((CurFilename == "-") ? std::string("<stdin>") : CurFilename)
+ ":" + utostr((unsigned) llvmAsmlineno) + ": ";
std::string errMsg = std::string(ErrorMsg) + "\n" + where + " while reading ";
- if (yychar == YYEMPTY)
+ if (yychar == YYEMPTY || yychar == 0)
errMsg += "end-of-file.";
else
errMsg += "token: '" + std::string(llvmAsmtext, llvmAsmleng) + "'";
More information about the llvm-commits
mailing list