On 12 February 2014 20:22, Reid Kleckner <[email protected]> wrote: > I tried to apply this with a test case that doesn't run the optimizer, and > discovered something scary. GlobalAlias inherits from GlobalValue and > therefore has a section, but the LangRef doesn't document this and we don't > know how to serialize and deserialize it. > > So, if we applied this patch, the section on the alias would be dropped if > we did LTO. :(
This looks like an effect of pr10367. For now I suggest that we just enforce that aliases never have section and they implicitly use the section of what they target. Cheers, Rafael _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
