[llvm] 06dc402 - [Support] Use default member initialization (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 18 15:46:13 PDT 2022
Author: Kazu Hirata
Date: 2022-06-18T15:46:09-07:00
New Revision: 06dc4028d94303a6d9d93917c047a7391d533a0d
URL: https://github.com/llvm/llvm-project/commit/06dc4028d94303a6d9d93917c047a7391d533a0d
DIFF: https://github.com/llvm/llvm-project/commit/06dc4028d94303a6d9d93917c047a7391d533a0d.diff
LOG: [Support] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
Added:
Modified:
llvm/lib/Support/LineIterator.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/LineIterator.cpp b/llvm/lib/Support/LineIterator.cpp
index 7bdf1271ac25f..9874d16d19e14 100644
--- a/llvm/lib/Support/LineIterator.cpp
+++ b/llvm/lib/Support/LineIterator.cpp
@@ -38,7 +38,7 @@ line_iterator::line_iterator(const MemoryBuffer &Buffer, bool SkipBlanks,
line_iterator::line_iterator(const MemoryBufferRef &Buffer, bool SkipBlanks,
char CommentMarker)
: Buffer(Buffer.getBufferSize() ? Optional<MemoryBufferRef>(Buffer) : None),
- CommentMarker(CommentMarker), SkipBlanks(SkipBlanks), LineNumber(1),
+ CommentMarker(CommentMarker), SkipBlanks(SkipBlanks),
CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr,
0) {
// Ensure that if we are constructed on a non-empty memory buffer that it is
More information about the llvm-commits
mailing list