The understanding of "him" in the sentence "When I met him, Tom looked upset" depends on the following word "Tom," so "him" is a cataphoric reference.