[llvm-dev] RFC: metadata attachments for global variables

Adrian Prantl via llvm-dev llvm-dev at lists.llvm.org
Fri May 6 15:04:07 PDT 2016


> On May 6, 2016, at 1:54 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> 
> Thanks Adrian.
> 
> The ASan issue in that code review actually seems very similar to some of the global variable manipulation that I'm doing as part of whole-program vtable optimization and CFI (see e.g. DevirtModule::rebuildGlobal). I'll have to think about whether there's maybe some solution to this problem that could be used by ASan, vtable opt and CFI.
> 
> How can we end up with more than one !dbg per global? Because of global merging?

Basically, yes. I thought I remembered that there where other situations but I failed to construct one at the moment.

> 
> Peter



More information about the llvm-dev mailing list