mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 01:04:49 +08:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user