When doing v1->RAUW(v2), don't do anything to metadata. We don't know
authorChris Lattner <sabre@nondot.org>
Tue, 29 Dec 2009 02:53:52 +0000 (02:53 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Dec 2009 02:53:52 +0000 (02:53 +0000)
commita43a3f2379360a766725a4138ee9aff4df41b486
tree82e3170f538d3252efa5f417704375699fceee99
parentb2406d9895314cbc61183c2fb712cd1a2ddfe7e0
When doing v1->RAUW(v2), don't do anything to metadata.  We don't know
why one was replaced with the other.  Even in the specific case of
debug information, it doesn't make sense to transfer the location over,
this will just result in jumbled loc info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92241 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Metadata.h
lib/VMCore/Metadata.cpp
lib/VMCore/Value.cpp