[lld] [lld][NFC] Revert commit ccec22b675195bf. (PR #76398)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 26 09:14:37 PST 2023
https://github.com/cjacek created https://github.com/llvm/llvm-project/pull/76398
This reverts commit ccec22b675195bf45a5e34583a866ab881f94dde (#75183). It's no longer needed with #76251.
>From 8736b0b533242527628f6a6a9507a311aef02a2a Mon Sep 17 00:00:00 2001
From: Jacek Caban <jacek at codeweavers.com>
Date: Tue, 26 Dec 2023 17:33:58 +0100
Subject: [PATCH] Revert "[lld][NFC] Silence -Wuninitialized GCC 11 warnings.
(#75183)"
This reverts commit ccec22b675195bf45a5e34583a866ab881f94dde. It's no longer needed with #76251.
---
lld/COFF/Writer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp
index 2982165530c08f..2e34a6c5cfa2c0 100644
--- a/lld/COFF/Writer.cpp
+++ b/lld/COFF/Writer.cpp
@@ -560,7 +560,7 @@ void Writer::createECCodeMap() {
codeMap.clear();
std::optional<chpe_range_type> lastType;
- Chunk *first = nullptr, *last = nullptr;
+ Chunk *first, *last;
auto closeRange = [&]() {
if (lastType) {
More information about the llvm-commits
mailing list