message: [XLA] Ensure we reset IR hooks even when CompileToExecutable fails.
  If we don't do this, the next test will CHECK-fail because the IR hooks
  are nonempty.
diff: @@ -51,8 +51,9 @@ void LlvmIrGenTestBase::CompileAndVerifyIr(
  std::unique_ptr<HloModule> hlo_module, const string& pattern,
  bool match_optimized_ir) {
  SetIrHook(match_optimized_ir);
  - TF_ASSERT_OK(CompileToExecutable(std::move(hlo_module)).status());
  + Status status = CompileToExecutable(std::move(hlo_module)).status();
  ResetIrHook();
  + TF_ASSERT_OK(status);
  StatusOr<bool> filecheck_result = RunFileCheck(ir_, pattern);
  TF_ASSERT_OK(filecheck_result.status());
  @@ -73,9 +74,10 @@ void LlvmIrGenTestBase::CompileAheadOfTimeAndVerifyIr(
  std::unique_ptr<HloModule> hlo_module, const AotCompilationOptions& options,
  const string& pattern, bool match_optimized_ir) {
  SetIrHook(match_optimized_ir);
  - TF_ASSERT_OK(
  - CompileToAotCompilationResult(std::move(hlo_module), options).status());
  + Status status =
  + CompileToAotCompilationResult(std::move(hlo_module), options).status();
  ResetIrHook();
  + TF_ASSERT_OK(status);
  StatusOr<bool> filecheck_result = RunFileCheck(ir_, pattern);
  ASSERT_TRUE(filecheck_result.ok());
  