What are you suppose to do when you get glass on cloths?

yesterday i broke a glass cup and little pieces of glass got on to my cotton zip up sweatshirt and i was wondering if i should wash it in the washer and if it would harm the washer or me if i did