Fix an invalid assert when processing escaped strings.
authorRiver Riddle <riverriddle@google.com>
Tue, 3 Sep 2019 18:27:00 +0000 (11:27 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 3 Sep 2019 18:27:39 +0000 (11:27 -0700)
commit61ee7d640c5a8ebe555385889b30e1b8ffb64961
treef6bc55bf181a856cf723ba723b5a3892c0aac07a
parent6eb910a59c05b694166cf082634ee0ad35da4079
Fix an invalid assert when processing escaped strings.

The assert assumed that the escaped character could not appear at the end of the string.

Fixes tensorflow/mlir#117

PiperOrigin-RevId: 266975471
mlir/lib/Parser/Token.cpp
mlir/test/IR/parser.mlir