Index: src/wp-includes/link-template.php
===================================================================
--- src/wp-includes/link-template.php	(revision 34127)
+++ src/wp-includes/link-template.php	(working copy)
@@ -3604,6 +3604,10 @@
 	$email_hash = '';
 	$user = $email = false;
 
+	if ( is_object( $id_or_email ) && isset( $id_or_email->comment_ID ) ) {
+		$id_or_email = get_comment( $id_or_email );
+	}
+
 	// Process the user identifier.
 	if ( is_numeric( $id_or_email ) ) {
 		$user = get_user_by( 'id', absint( $id_or_email ) );
