mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
C unions are imported as opaque types. Therefore we have to assume that a union contains a pointer. This is important for alias analysis to catch escaping pointers via C unions. Fixes a miscompile. rdar://141555290
10 lines
55 B
C
10 lines
55 B
C
|
|
struct S {
|
|
int i;
|
|
};
|
|
|
|
union U {
|
|
struct S *p;
|
|
};
|
|
|