We weren't properly setting the linkage on typeinfo objects, leading to multiple definition linking error when typeinfo for a class was referenced in multiple source files. We had the correct linkage available in the buildTypeInfo function, but we weren't doing anything with it. This also prevented us from hitting the diagnostic saying that we should have set the comdat attribute for the typeinfo. This change fixes both of those problems.
4.7 KiB
4.7 KiB