Skip to content

Commit 3e54e64

Browse files
committed
IRGen: Add fixed underlying type to enum to avoid UB
See llvm/llvm-project#150308.
1 parent 4ed3855 commit 3e54e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenCoro.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class GetDeallocThroughFn {
289289
/// TaskAllocator Allocator;
290290
/// }
291291
struct PrivateLayout {
292-
enum Kind {
292+
enum Kind : uint8_t {
293293
Old32Bit,
294294
Old64Bit,
295295
New32BitSansEscalation,

0 commit comments

Comments
 (0)