diff --git a/xla/hlo/evaluator/hlo_evaluator.cc b/xla/hlo/evaluator/hlo_evaluator.cc index 9b51dca772101..8eb6caf24ab88 100644 --- a/xla/hlo/evaluator/hlo_evaluator.cc +++ b/xla/hlo/evaluator/hlo_evaluator.cc @@ -535,8 +535,6 @@ std::optional EvaluateWhileLoopParamInitValue( namespace internal { -constexpr absl::string_view kEvalErrorDetailUrl = "EvalErrorDetailUrl"; - std::optional ParseEvalErrorDetail(const absl::Status& error) { auto error_detail = error.GetPayload(kEvalErrorDetailUrl); if (!error_detail.has_value() || error_detail->empty()) { diff --git a/xla/hlo/evaluator/hlo_evaluator.h b/xla/hlo/evaluator/hlo_evaluator.h index 2f91c39c857c9..37dbb9efda855 100644 --- a/xla/hlo/evaluator/hlo_evaluator.h +++ b/xla/hlo/evaluator/hlo_evaluator.h @@ -530,7 +530,7 @@ enum class EvalErrorDetail : uint32_t { kDynamicValueDependence = 0, }; -extern const absl::string_view kEvalErrorDetailUrl; +extern const absl::string_view kEvalErrorDetailUrl = "EvalErrorDetailUrl"; std::optional ParseEvalErrorDetail(const absl::Status& error);