[PATCH] DebugIR: Delete old debug info instead of updating it

Duncan P. N. Exon Smith dexonsmith at apple.com
Sun Nov 23 19:26:28 PST 2014


While removing instances of `MDNode::replaceAllUsesWith()`, I came
across this unlikely-to-be-correct RAUW of a compile unit.

There are no tests that the updated debug info works correctly and it
looks unlikely to be useful in any way -- are you debugging the original
source, or the IR?  Instead, just delete the old debug info before
creating something new.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: DebugIR-Delete-old-debug-info.patch
Type: application/octet-stream
Size: 4213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141123/01c8a2f5/attachment.obj>


More information about the llvm-commits mailing list