Hi Richard, Currently we give all static locals NoLinkage and CodeGen works around it when it needs to make them linkonce_odr. The attached patch gives static locals in inline functions VisibleNoLinkage and simplifies CodeGen. Cheers, Rafael