fix PR6112 - When globalopt (or any other pass) does RAUW(@G, %G),
authorChris Lattner <sabre@nondot.org>
Wed, 28 Apr 2010 20:16:12 +0000 (20:16 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 28 Apr 2010 20:16:12 +0000 (20:16 +0000)
commitf3f325b82fdeeb055225d98d9076214108d35f39
treecfe498a4e9eecd4aedec2c8b527a5ba1c653bc9d
parent59b3655564bb6717b296ca9e71f13bf7db45b590
fix PR6112 - When globalopt (or any other pass) does RAUW(@G, %G),
metadata references in non-function-local MDNodes should drop to
null.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102519 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Metadata.cpp
test/Transforms/GlobalOpt/metadata.ll [new file with mode: 0644]