aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCDisassembler
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-09-23 02:14:12 +0000
committerSean Callanan <scallanan@apple.com>2010-09-23 02:14:12 +0000
commit38a9288f78d76ad8f43a0398230c7c420390e606 (patch)
tree5aa41819e62b9608433c563cc3882528dd9eeb29 /lib/MC/MCDisassembler
parentbe2d4e77b5312b8cdaee4b83810cdd98ef9abcda (diff)
downloadexternal_llvm-38a9288f78d76ad8f43a0398230c7c420390e606.zip
external_llvm-38a9288f78d76ad8f43a0398230c7c420390e606.tar.gz
external_llvm-38a9288f78d76ad8f43a0398230c7c420390e606.tar.bz2
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
Diffstat (limited to 'lib/MC/MCDisassembler')
-rw-r--r--lib/MC/MCDisassembler/EDInst.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCDisassembler/EDInst.cpp b/lib/MC/MCDisassembler/EDInst.cpp
index e22408f..63b049f 100644
--- a/lib/MC/MCDisassembler/EDInst.cpp
+++ b/lib/MC/MCDisassembler/EDInst.cpp
@@ -62,6 +62,8 @@ int EDInst::stringify() {
if (Disassembler.printInst(String, *Inst))
return StringifyResult.setResult(-1);
+
+ String.push_back('\n');
return StringifyResult.setResult(0);
}