Fixed a crash in the enhanced disassembler where

because of the lack of a newline, AsmToken::Eof
was being found instead of AsmToken::EndOfStatement.

llvm-svn: 114621
This commit is contained in:
Sean Callanan 2010-09-23 02:14:12 +00:00
parent 2277701c7b
commit 002ad003a3
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ int EDInst::stringify() {
if (Disassembler.printInst(String, *Inst))
return StringifyResult.setResult(-1);
String.push_back('\n');
return StringifyResult.setResult(0);
}