Resolve dead variable assignments.