[LLVMdev] AllocaInst remapped as NULL in llvm::MapValue
Jacob Zimmermann
jacob.zimmermann at oracle.com
Thu Mar 3 17:45:08 PST 2011
Hello all
When using llvm-ld to link several bitcode files produced by LLVM-GCC, I
ran into the problem that the resulting linked file had missing dbg
entries for AllocaInst values. After some digging I found that
llvm::MapValue returns NULL when it encounters an AllocaInst. The
attached trivial patch fixes the problem.
Is this behaviour intended?
Regards,
Jacob
--
Jacob Zimmermann
Oracle Labs, Brisbane, Queensland,
Australia
jacob.zimmermann at oracle.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-dont-drop-allocainst.diff
Type: text/x-patch
Size: 854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110304/3a4f538d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110304/3a4f538d/attachment.sig>
More information about the llvm-dev
mailing list