search for: linkglobalinits

Displaying 3 results from an estimated 3 matches for "linkglobalinits".

2012 Jan 11
2
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
Hi all, I was looking at the ValueMapper code this morning and I notice that it doesn't do type mapping for GlobalValues. Is this correct? I ask because I am seeing a case where I'm failing type assertions from ModuleLinker::linkGlobalInits() when an array initializer references an external global. It looks like the external global is being mapped directly and this causes an element type check to fail in ConstantArray::get(). Curiously, this only happens when that external global is also referenced from within a function in the same...
2012 Jan 12
0
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
...2 07:50 AM, Michael Muller wrote: > > Hi all, I was looking at the ValueMapper code this morning and I notice that > it doesn't do type mapping for GlobalValues. Is this correct? > > I ask because I am seeing a case where I'm failing type assertions from > ModuleLinker::linkGlobalInits() when an array initializer references an > external global. It looks like the external global is being mapped directly > and this causes an element type check to fail in ConstantArray::get(). > Curiously, this only happens when that external global is also referenced from > within a f...
2012 Jan 12
2
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
...te: > > > > Hi all, I was looking at the ValueMapper code this morning and I notice that > > it doesn't do type mapping for GlobalValues. Is this correct? > > > > I ask because I am seeing a case where I'm failing type assertions from > > ModuleLinker::linkGlobalInits() when an array initializer references an > > external global. It looks like the external global is being mapped directly > > and this causes an element type check to fail in ConstantArray::get(). > > Curiously, this only happens when that external global is also referenced from...