[llvm-mc] Fixing case where if a file ended with non-newline whitespace or a comma...
authorColin LeMahieu <colinl@codeaurora.org>
Tue, 11 Nov 2014 21:03:09 +0000 (21:03 +0000)
committerColin LeMahieu <colinl@codeaurora.org>
Tue, 11 Nov 2014 21:03:09 +0000 (21:03 +0000)
commit6d093fd78af3ce8b0d6abf533c4d83e2767c6c6a
treed87f2bd5cd903532ccf719a3cf59438d4e73ea4e
parente7c966f0673009b82e87d3e9c50e1216efe721bb
[llvm-mc] Fixing case where if a file ended with non-newline whitespace or a comma it would access invalid memory.
Cleaned up parse loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221707 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-mc/line_end_with_space.test [new file with mode: 0644]
tools/llvm-mc/Disassembler.cpp