Skip to content

Commit b2488e3

Browse files
authored
Silence a compiler warning (#913)
GCC 11 complains about allocsize_0 being uninitialized. I don't see any place where the uninitialized value is actually used, but let's silence the compiler warning anyway.
1 parent 85a5f81 commit b2488e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ir/attrs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ class FnAttrs final {
136136
uint64_t derefOrNullBytes = 0; // DereferenceableOrNull
137137
uint64_t align = 0;
138138

139-
unsigned allocsize_0;
140-
unsigned allocsize_1 = -1u;
139+
unsigned allocsize_0 = 0; // AllocSize
140+
unsigned allocsize_1 = -1u; // AllocSize
141141

142142
MemoryAccess mem;
143143

0 commit comments

Comments
 (0)