aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_lexer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_lexer.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_lexer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_lexer.cc b/tensorflow/compiler/xla/service/hlo_lexer.cc
index a2ad4c8315..0e49d343d6 100644
--- a/tensorflow/compiler/xla/service/hlo_lexer.cc
+++ b/tensorflow/compiler/xla/service/hlo_lexer.cc
@@ -409,9 +409,9 @@ TokKind HloLexer::LexString() {
string error;
// TODO(b/113077997): Change to absl::CUnescape once it works properly with
// copy-on-write std::string implementations.
- if (!tensorflow::str_util::CUnescape(
- tensorflow::StringPiece(raw.data(), raw.size()), &str_val_,
- &error)) {
+ if (!tensorflow::str_util::CUnescape( // non-absl ok
+ tensorflow::StringPiece(raw.data(), raw.size()), // non-absl ok
+ &str_val_, &error)) {
LOG(ERROR) << "Failed unescaping string: " << raw << ". error: " << error;
return TokKind::kError;
}