[llvm-commits] [llvm] r114621 - /llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp
Sean Callanan
scallanan at apple.com
Wed Sep 22 19:14:12 PDT 2010
Author: spyffe
Date: Wed Sep 22 21:14:12 2010
New Revision: 114621
URL: http://llvm.org/viewvc/llvm-project?rev=114621&view=rev
Log:
Fixed a crash in the enhanced disassembler where
because of the lack of a newline, AsmToken::Eof
was being found instead of AsmToken::EndOfStatement.
Modified:
llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp
Modified: llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp?rev=114621&r1=114620&r2=114621&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp (original)
+++ llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp Wed Sep 22 21:14:12 2010
@@ -62,6 +62,8 @@
if (Disassembler.printInst(String, *Inst))
return StringifyResult.setResult(-1);
+
+ String.push_back('\n');
return StringifyResult.setResult(0);
}
More information about the llvm-commits
mailing list