[mlir] Fix tests after Chris implemented string escaping in MLIR

We don't need to C-escape any more, so don't. Also, change the expected escaping syntax to be the slightly noisier version that LLVM emits.

PiperOrigin-RevId: 208989483
This commit is contained in:
James Molloy 2018-08-16 08:43:55 -07:00 committed by jpienaar
parent f962e628e3
commit ab2aa65511
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ std::string Token::getStringValue() const {
break;
}
assert(i + 1 < e && "invalid string should be caught by lexer");
assert(i + 1 <= e && "invalid string should be caught by lexer");
auto c2 = bytes[i++];
assert(llvm::isHexDigit(c1) && llvm::isHexDigit(c2) && "invalid escape");