Teach the LLParser to fail gracefully when it encounters an invalid label name.
authorOwen Anderson <resistor@mac.com>
Mon, 2 Mar 2015 05:25:09 +0000 (05:25 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 2 Mar 2015 05:25:09 +0000 (05:25 +0000)
commit0923ca275bac81966b0662c2d3eb0e455db432d6
tree62bf4dc23a84142b3ad0ab9c1b8e55196b172f5c
parentdafab60b57e71c0a2baced53affe3aa580f6eb3f
Teach the LLParser to fail gracefully when it encounters an invalid label name.

Previous it would either assert in +Asserts, or crash in -Asserts. Found by fuzzing LLParser.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230935 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
test/Assembler/invalid-label.ll [new file with mode: 0644]