diff options
author | Kazu Hirata <kazu@google.com> | 2022-01-01 16:18:18 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-01-01 16:18:18 -0800 |
commit | fd4808887ee47f3ec8a030e9211169ef4fb094c3 (patch) | |
tree | 73657b469ae10e1950dc3af57464fef9ac52a3b3 /llvm/lib/Remarks | |
parent | 104a827ea6de0cbe0f5faef4407552ede31d165c (diff) | |
download | llvm-fd4808887ee47f3ec8a030e9211169ef4fb094c3.zip llvm-fd4808887ee47f3ec8a030e9211169ef4fb094c3.tar.gz llvm-fd4808887ee47f3ec8a030e9211169ef4fb094c3.tar.bz2 |
[llvm] Remove redundant member initialization (NFC)
Identified with readability-redundant-member-init.
Diffstat (limited to 'llvm/lib/Remarks')
-rw-r--r-- | llvm/lib/Remarks/BitstreamRemarkSerializer.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Remarks/RemarkStreamer.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Remarks/RemarkStringTable.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Remarks/YAMLRemarkParser.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Remarks/BitstreamRemarkSerializer.cpp b/llvm/lib/Remarks/BitstreamRemarkSerializer.cpp index 36ba935..0810bf5 100644 --- a/llvm/lib/Remarks/BitstreamRemarkSerializer.cpp +++ b/llvm/lib/Remarks/BitstreamRemarkSerializer.cpp @@ -18,7 +18,7 @@ using namespace llvm::remarks; BitstreamRemarkSerializerHelper::BitstreamRemarkSerializerHelper( BitstreamRemarkContainerType ContainerType) - : Encoded(), R(), Bitstream(Encoded), ContainerType(ContainerType) {} + : Bitstream(Encoded), ContainerType(ContainerType) {} static void push(SmallVectorImpl<uint64_t> &R, StringRef Str) { append_range(R, Str); diff --git a/llvm/lib/Remarks/RemarkStreamer.cpp b/llvm/lib/Remarks/RemarkStreamer.cpp index 2f00b8e..543b007 100644 --- a/llvm/lib/Remarks/RemarkStreamer.cpp +++ b/llvm/lib/Remarks/RemarkStreamer.cpp @@ -26,7 +26,7 @@ static cl::opt<cl::boolOrDefault> EnableRemarksSection( RemarkStreamer::RemarkStreamer( std::unique_ptr<remarks::RemarkSerializer> RemarkSerializer, Optional<StringRef> FilenameIn) - : PassFilter(), RemarkSerializer(std::move(RemarkSerializer)), + : RemarkSerializer(std::move(RemarkSerializer)), Filename(FilenameIn ? Optional<std::string>(FilenameIn->str()) : None) {} Error RemarkStreamer::setFilter(StringRef Filter) { diff --git a/llvm/lib/Remarks/RemarkStringTable.cpp b/llvm/lib/Remarks/RemarkStringTable.cpp index 5f462f0..03d93ba 100644 --- a/llvm/lib/Remarks/RemarkStringTable.cpp +++ b/llvm/lib/Remarks/RemarkStringTable.cpp @@ -20,7 +20,7 @@ using namespace llvm; using namespace llvm::remarks; -StringTable::StringTable(const ParsedStringTable &Other) : StrTab() { +StringTable::StringTable(const ParsedStringTable &Other) { for (unsigned i = 0, e = Other.size(); i < e; ++i) if (Expected<StringRef> MaybeStr = Other[i]) add(*MaybeStr); diff --git a/llvm/lib/Remarks/YAMLRemarkParser.cpp b/llvm/lib/Remarks/YAMLRemarkParser.cpp index 3d9996c..a32629c 100644 --- a/llvm/lib/Remarks/YAMLRemarkParser.cpp +++ b/llvm/lib/Remarks/YAMLRemarkParser.cpp @@ -171,7 +171,7 @@ YAMLRemarkParser::YAMLRemarkParser(StringRef Buf) YAMLRemarkParser::YAMLRemarkParser(StringRef Buf, Optional<ParsedStringTable> StrTab) - : RemarkParser{Format::YAML}, StrTab(std::move(StrTab)), LastErrorMessage(), + : RemarkParser{Format::YAML}, StrTab(std::move(StrTab)), SM(setupSM(LastErrorMessage)), Stream(Buf, SM), YAMLIt(Stream.begin()) {} Error YAMLRemarkParser::error(StringRef Message, yaml::Node &Node) { |