[lld] [lld][NFC] Revert commit ccec22b675195bf. (PR #76398)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 26 09:15:06 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: Jacek Caban (cjacek)

<details>
<summary>Changes</summary>

This reverts commit ccec22b675195bf45a5e34583a866ab881f94dde (#<!-- -->75183). It's no longer needed with #<!-- -->76251.

---
Full diff: https://github.com/llvm/llvm-project/pull/76398.diff


1 Files Affected:

- (modified) lld/COFF/Writer.cpp (+1-1) 


``````````diff
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) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/76398


More information about the llvm-commits mailing list