What type of literary device?

" At that instant he took a pistol out of his pocket and held the ice cold block at my head"

It's a slangy way to describe a pistol: ice cold metal that felt like a block when held to the head, hard and bulky. It is a metaphor, however, so it is a literary device.