The larger gun companies have no fear of a few bedwetting liberals offloading stocks in their 401ks. Plenty of other people who aren’t gun grabbers will take the profits.
There are mutual funds that ONLY invest in firearms and defense stocks and others that specialize in “vices” such as tobacco, liquor, firearms and related.