forked from OSchip/llvm-project
488f861b83
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 |
||
---|---|---|
.. | ||
anonymous-fields1.cpp | ||
anonymous-fields2.cpp | ||
body1.c | ||
body2.c | ||
category1.m | ||
category2.m | ||
class-template1.cpp | ||
class-template2.cpp | ||
class1.cpp | ||
class2.cpp | ||
enum1.c | ||
enum2.c | ||
exprs1.c | ||
exprs2.c | ||
function1.c | ||
function2.c | ||
inheritance-base.cpp | ||
init-ctors-classes.cpp | ||
interface1.m | ||
interface2.m | ||
namespace1.cpp | ||
namespace2.cpp | ||
property1.m | ||
property2.m | ||
struct1.c | ||
struct2.c | ||
typedef1.c | ||
typedef2.c | ||
var1.c | ||
var1.h | ||
var2.c |