[lld][NFC] Silence -Wuninitialized GCC 11 warnings. (#75183)

Use of those variables is guarded by lastType, so they are not actually used uninitialized.
This commit is contained in:
Jacek Caban
2023-12-12 14:45:42 +01:00
committed by GitHub
parent edcc7fe9aa
commit ccec22b675

View File

@@ -560,7 +560,7 @@ void Writer::createECCodeMap() {
codeMap.clear();
std::optional<chpe_range_type> lastType;
Chunk *first, *last;
Chunk *first = nullptr, *last = nullptr;
auto closeRange = [&]() {
if (lastType) {