diff options
author | Duncan Sands <baldrick@free.fr> | 2010-05-04 12:43:36 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-05-04 12:43:36 +0000 |
commit | c2928c6ef525210efa5ace625544043fcfd2e940 (patch) | |
tree | 7df7df4d132f22aa9f1af6cece2133484adc84ce /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 80fecfff455db51f52b95a00e329ae19e1f2242a (diff) | |
download | llvm-c2928c6ef525210efa5ace625544043fcfd2e940.zip llvm-c2928c6ef525210efa5ace625544043fcfd2e940.tar.gz llvm-c2928c6ef525210efa5ace625544043fcfd2e940.tar.bz2 |
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.
llvm-svn: 103007
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions