OSDN Git Service

[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)
commit10adab0d54dca2f6e66f8c517ee4fa5dbd354d4c
tree73e81bf0d7e2dd4a695a77291dd0a24c75a96fe4
parent03cebfbba99b59953fd96fd4bd55d15c64df3fb7
[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)'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287170 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLLexer.cpp