Depends on the wording. "Upon X, the land shall revert to Y, or current heir" is common verbiage in deed restrictions.