summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/YAMLTraits.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-04-10 05:20:00 +0000
committerEric Christopher <echristo@gmail.com>2014-04-10 05:20:00 +0000
commitcab9fae40308173868967c870c0247239e07a9a3 (patch)
tree317e32fe66cc8b42999e2180e4393909793f8b61 /llvm/lib/Support/YAMLTraits.cpp
parent951716bf37dc43764322925350ba801c6d6dc04f (diff)
downloadbcm5719-llvm-cab9fae40308173868967c870c0247239e07a9a3.tar.gz
bcm5719-llvm-cab9fae40308173868967c870c0247239e07a9a3.zip
Add global static variables for anonymous union fields. This makes
sure that a debugger can find them when stepping through code, for example from the included testcase: 12 int test_it() { 13 c = 1; 14 d = 2; -> 15 a = 4; 16 return (c == 1); 17 } 18 (lldb) p a (int) $0 = 2 (lldb) p c (int) $1 = 2 (lldb) p d (int) $2 = 2 and a, c, d are all part of the file static anonymous union: static union { int c; int d; union { int a; }; struct { int b; }; }; Fixes PR19221. llvm-svn: 205952
Diffstat (limited to 'llvm/lib/Support/YAMLTraits.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud