AsmParser: Don't allow null bytes in BB labels
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 02:10:35 +0000 (02:10 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 02:10:35 +0000 (02:10 +0000)
commit09df76443e464b64eea650feee384f06d9deec88
treeafc9ed7d7b2d4325ecfe4fa375607ba2606b9376
parent0e6679635a5dbc3d925369e690606e226aef8e86
AsmParser: Don't allow null bytes in BB labels

Since Value objects can't have null bytes in their name, we shouldn't
allow them in the labels of basic blocks.

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