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:
parent
2277701c7b
commit
002ad003a3
|
@ -62,6 +62,8 @@ int EDInst::stringify() {
|
||||||
|
|
||||||
if (Disassembler.printInst(String, *Inst))
|
if (Disassembler.printInst(String, *Inst))
|
||||||
return StringifyResult.setResult(-1);
|
return StringifyResult.setResult(-1);
|
||||||
|
|
||||||
|
String.push_back('\n');
|
||||||
|
|
||||||
return StringifyResult.setResult(0);
|
return StringifyResult.setResult(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue