Skip to content

Commit 503907d

Browse files
committed
[ELF] LinkerScript: initialize dot. NFC
Ensure that `dot` is initialized even if `script` uses default-initialization.
1 parent 8863685 commit 503907d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/LinkerScript.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class LinkerScript final {
332332

333333
OutputSection *aether;
334334

335-
uint64_t dot;
335+
uint64_t dot = 0;
336336

337337
public:
338338
OutputDesc *createOutputSection(StringRef name, StringRef location);

0 commit comments

Comments
 (0)