Skip to content

Commit ccec22b

Browse files
authored
[lld][NFC] Silence -Wuninitialized GCC 11 warnings. (#75183)
Use of those variables is guarded by lastType, so they are not actually used uninitialized.
1 parent edcc7fe commit ccec22b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/COFF/Writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ void Writer::createECCodeMap() {
560560
codeMap.clear();
561561

562562
std::optional<chpe_range_type> lastType;
563-
Chunk *first, *last;
563+
Chunk *first = nullptr, *last = nullptr;
564564

565565
auto closeRange = [&]() {
566566
if (lastType) {

0 commit comments

Comments
 (0)