[LLVMdev] patch: CloneModule resets GlobalVariable address space

Eli Friedman eli.friedman at gmail.com
Mon Aug 15 14:08:18 PDT 2011


On Sat, Aug 13, 2011 at 4:38 PM, Simon Moll <Simon.Moll at dfki.de> wrote:
> Hi,
>
> I found the following bug in llvm::CloneModule (svn, head revision).
> When copying over global variables the address space is reset to
> default. The patch changes that behavior by using the other
> GlobalVariable constructor that explicitely includes that information.

r137654 fixes all the issues I could find looking at the code.  Note
that this codepath is relatively lightly tested, though; the only user
of it in the LLVM codebase is bugpoint.

-Eli



More information about the llvm-dev mailing list