[PATCH] Do not destroy external linkage when deleting function body
Petar Jovanovic
petarj at mips.com
Fri Sep 19 11:26:24 PDT 2014
Hi dexonsmith, rafael,
The function deleteBody() converts the linkage to external and thus destroys
original linkage type value. Lack of correct linkage type causes wrong
relocations to be emitted later.
Calling dropAllReferences() instead of deleteBody() will fix the issue.
http://reviews.llvm.org/D5415
Files:
lib/Bitcode/Reader/BitcodeReader.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5415.13880.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140919/e2f5eef1/attachment.bin>
More information about the llvm-commits
mailing list