[lld] 503907d - [ELF] LinkerScript: initialize dot. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 21:12:23 PDT 2024
Author: Fangrui Song
Date: 2024-08-21T21:12:18-07:00
New Revision: 503907dc505db1e439e7061113bf84dd105f2e35
URL: https://github.com/llvm/llvm-project/commit/503907dc505db1e439e7061113bf84dd105f2e35
DIFF: https://github.com/llvm/llvm-project/commit/503907dc505db1e439e7061113bf84dd105f2e35.diff
LOG: [ELF] LinkerScript: initialize dot. NFC
Ensure that `dot` is initialized even if `script` uses
default-initialization.
Added:
Modified:
lld/ELF/LinkerScript.h
Removed:
################################################################################
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index b057051f772bf8..6634478160bc60 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -332,7 +332,7 @@ class LinkerScript final {
OutputSection *aether;
- uint64_t dot;
+ uint64_t dot = 0;
public:
OutputDesc *createOutputSection(StringRef name, StringRef location);
More information about the llvm-commits
mailing list