commit | 203f7cb68b6c509b388d1662d8439693f75bb964 | [log] [tgz] |
---|---|---|
author | Duncan Sands <baldrick@free.fr> | Tue May 04 12:43:36 2010 +0000 |
committer | Duncan Sands <baldrick@free.fr> | Tue May 04 12:43:36 2010 +0000 |
tree | 682e419c5bf8666129f76bd20da9577d22fcb226 | |
parent | 2f256f45612fe86f20d6439b917fbc3662e20f02 [diff] |
Fix a variant of PR6112 found by thinking about it: when doing RAUW of a global variable with a local variable in function F, if function local metadata M in function G was using the global then M would become function-local to both F and G, which is not allowed. See the testcase for an example. Fixed by detecting this situation and zapping the metadata operand when it occurs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103007 91177308-0d34-0410-b5e6-96231b3b80d8