Files
swift-mirror/test/SILOptimizer/Inputs/bitfield.h
Erik Eckstein 8d73f881e8 SIL: let getNominalFields return nil for a struct with unreferenceable storage
Like C bitfields.
Fixes a crash in the InitializeStaticGlobals pass in case a global having a C struct type with bitfield is initialized statically.
2025-06-10 10:55:40 +02:00

13 lines
86 B
C

struct S {
int a;
int b : 8;
};
struct S2 {
int a;
int :4;
int b;
};