[LLVMdev] patch: CloneModule resets GlobalVariable address space

Simon Moll Simon.Moll at dfki.de
Sat Aug 13 16:38:07 PDT 2011


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.

Regards,
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVM29_CloneModule_GVSpace.diff
Type: text/x-patch
Size: 851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110814/f31260f1/attachment.bin>


More information about the llvm-dev mailing list