Fixed a crash in the enhanced disassembler where

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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114621 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Callanan 2010-09-23 02:14:12 +00:00
parent be2d4e77b5
commit 38a9288f78

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);
}