[AsmParser] Avoid recursing when lexing ';'. NFC.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 16 Nov 2016 22:25:05 +0000 (22:25 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 16 Nov 2016 22:25:05 +0000 (22:25 +0000)
commitf33f91af245d631034bd55eedc4f9705461d17f6
tree0c3af87cc96c2cc6d426b454a1c7e2c0f2d26506
parentbd6ce9a2471756c29ae7a8e6c9d2377bdfd8c778
[AsmParser] Avoid recursing when lexing ';'. NFC.

This should prevent stack overflows in non-optimized builds on
.ll files with lots of consecutive commented-out lines.

Instead of recursing into LexToken(), continue into a 'while (true)'.

llvm-svn: 287170
llvm/lib/AsmParser/LLLexer.cpp