Files
swift-mirror/test/SILOptimizer/Inputs/dse_with_union.h
Erik Eckstein 5a5cbf78a0 EscapeAnalysis: fix a problem with unchecked_addr_cast
In case an unchecked_addr_cast is used to convert between pointer and non-pointer, we missed some escaping values.
This can be the case when using C unions.

https://bugs.swift.org/browse/SR-12427
rdar://problem/60983997
2020-04-03 09:07:34 +02:00

9 lines
54 B
C

struct S {
int i;
};
union U {
struct S *p;
};