aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/PHIElimination.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-05-04 12:43:36 +0000
committerDuncan Sands <baldrick@free.fr>2010-05-04 12:43:36 +0000
commit203f7cb68b6c509b388d1662d8439693f75bb964 (patch)
tree682e419c5bf8666129f76bd20da9577d22fcb226 /lib/CodeGen/PHIElimination.cpp
parent2f256f45612fe86f20d6439b917fbc3662e20f02 (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
Diffstat (limited to 'lib/CodeGen/PHIElimination.cpp')
0 files changed, 0 insertions, 0 deletions