message: Always consume status while compiling TF to HLO
  Otherwise, StatusScopedDiagnosticHandler may crash.
  This shouldn't generally happen but it is better to propagate error instead of crashing.
  Currently, this happens if legalize-with-tf2xla pattern reports an error but doesn't fail the pass. This should be separately updated to warning.
diff: @@ -274,7 +274,7 @@ Status RefineShapes(llvm::ArrayRef<TensorOrResourceShape> arg_shapes,
  return error_handler.Combine(
  errors::Internal("MLIR Shape refinement failed"));
  }
  - return Status::OK();
  + return error_handler.ConsumeStatus();
  }
  void CreateConvertMlirToXlaHloPipeline(
  @@ -388,7 +388,7 @@ Status LegalizeToHlo(mlir::ModuleOp module_op, llvm::StringRef device_type,
  if (VLOG_IS_ON(1))
  tensorflow::DumpMlirOpToFile("legalize_hlo_after", module_op);
  - return Status::OK();
  + return error_handler.ConsumeStatus();
  }
  Status BuildHloFromTfInner(mlir::ModuleOp module_op, xla::XlaBuilder& builder,
  