summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.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
commit993b99c22e182b24e042cc8281d899987e11d337 (patch)
treebe28238ab938107eec67615342d31ac276668870 /lib/CodeGen/CodeGenFunction.cpp
parentc38f186f229b37875b73ecd4c1d44d62c38bc354 (diff)
downloadclang-993b99c22e182b24e042cc8281d899987e11d337.tar.gz
clang-993b99c22e182b24e042cc8281d899987e11d337.tar.bz2
clang-993b99c22e182b24e042cc8281d899987e11d337.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions