IR: Allow comdats to be applied to globals with internal linkage