Whether function-local or not, a MDNode may reference a Function in which case
authorNick Lewycky <nicholas@mxc.ca>
Sat, 24 Jul 2010 19:43:25 +0000 (19:43 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 24 Jul 2010 19:43:25 +0000 (19:43 +0000)
commitfee12b29851983ab536d46ed0fe85bddd665638a
tree55f549e657e6e28037b002253567ac95fbb6cf70
parent1ec9e6a5dccbc6042d25f03f224d351f15812aec
Whether function-local or not, a MDNode may reference a Function in which case
it needs to be mapped to refer to the function in the new module, not the old
one. Fixes PR7700.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109353 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/ValueMapper.cpp