[PATCH] Fix DebugInfo replaceAllUsesWith.

Frederic Riss friss at apple.com
Fri Sep 12 00:59:14 PDT 2014


Hi dblaikie, echristo, aprantl,

replaceAllUsesWith had been modified to allow a DbgNode value to be
replaced by itself. In that case a new node is created by copying the
current DbgNode and the copy is used as replacement value.

When that copying happens, the value stored in this->DbgNode at the end
of RAUW would be a reference to the Node that has just been deleted.

This doesn't produce any bug right now, because the DI node on which we
call RAUW won't be used again.

http://reviews.llvm.org/D5326

Files:
  lib/IR/DebugInfo.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5326.13617.patch
Type: text/x-patch
Size: 406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140912/4250d664/attachment.bin>


More information about the llvm-commits mailing list