summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2016-07-14 19:53:44 +0000
committerSean Callanan <scallanan@apple.com>2016-07-14 19:53:44 +0000
commit488f861b836abcb08202a273f1839ca8c81cd14e (patch)
tree74d4e937df4e3f7023d93e10bc202133ad617e43 /lldb/packages/Python/lldbsuite/test
parent7853dd5decf27f2e09c61d42d537a868a748ce27 (diff)
downloadbcm5719-llvm-488f861b836abcb08202a273f1839ca8c81cd14e.tar.gz
bcm5719-llvm-488f861b836abcb08202a273f1839ca8c81cd14e.zip
When importing classes and structs with anonymous structs, it is critical that
distinct anonymous structs remain distinct despite having similar layout. This is already ensured by distinguishing based on their placement in the parent struct, using the function `findAnonymousStructOrUnionIndex`. The problem is that this function only handles anonymous structs, like ``` class Foo { struct { int a; } } ``` and not untagged structs like ``` class Foo { struct { int a; } var; } ``` Both need to be handled, and this patch fixes that. The test case ensures that this functionality doesn't regress. Thanks to Manman Ren for review. https://reviews.llvm.org/D22270 llvm-svn: 275460
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud