[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix asan error due to additional error logging
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 631870090
  • Loading branch information
deqiangc authored and tensorflower-gardener committed May 8, 2024
1 parent 7a49df9 commit eb93fb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tensorflow/core/tfrt/mlrt/interpreter/execute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,13 @@ void UnwindOnError(ExecutionContext& context, int64_t pc) {
context.function_stack_.pop_back();
}

context.LogError(absl::InternalError(
absl::StrCat("Finish UnwindOnError for function ", function_name)));

// Context may no longer be valid after exit_handler_ is called.
if (context.exit_handler_) {
std::move(context.exit_handler_)();
}
context.LogError(absl::InternalError("Finish UnwindOnError"));
}

} // namespace execute_internal
Expand Down

0 comments on commit eb93fb5

Please sign in to comment.