Do not include synthetic sections in ICF.
Fixes bug PR36910.
Alternative to D44898.
Please explain why. We don't merge synthetic sections because their Data member doesn't have a meaningful value.
Maybe it's better to write this as two if's because the boolean expression is a bit too complicated.
Updated to address review comments.
LGTM
Thanks!
You can use isa instead of dyn_cast.