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
11 lines
98 B
Plaintext
11 lines
98 B
Plaintext
module gizmo {
|
|
header "Gizmo.h"
|
|
export *
|
|
}
|
|
|
|
module CUnion {
|
|
header "cunion.h"
|
|
export *
|
|
}
|
|
|