Restructure comment lexing to not recurse.
authorRiver Riddle <riverriddle@google.com>
Tue, 12 Nov 2019 03:14:43 +0000 (19:14 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 12 Nov 2019 03:15:13 +0000 (19:15 -0800)
commit6582489219ab695a025457302a9e6924b1259176
tree2ecb96f88da7deaec9c4612981da6f73f5cc180e
parent9b9c647cefea0a81fdf7d2bf6586a13f99d9a2cf
Restructure comment lexing to not recurse.

In some files that have large amounts of comments, this can lead to a stack overflow.

PiperOrigin-RevId: 279867330
mlir/lib/Parser/Lexer.cpp
mlir/lib/Parser/Lexer.h