[PATCH] Prevent MDNode's RAUW from introducing a reference to a void Value.

Frederic Riss friss at apple.com
Thu Oct 16 08:58:47 PDT 2014


Hi echristo, dblaikie,

It seems this isn't allowed: the IR dumper would render it as !{void <badref>}
and it would assert when serialized to bitcode.

The specifc case that triggers the wrong behavior is related to debug
information (as shown in the testcase), but the fix is in the general metadata
code.

http://reviews.llvm.org/D5828

Files:
  lib/IR/Metadata.cpp
  test/DebugInfo/voidMDNode.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5828.15022.patch
Type: text/x-patch
Size: 4475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141016/536b486d/attachment.bin>


More information about the llvm-commits mailing list