Skip to content

Commit 9461df3

Browse files
authored
[NFC][OffloadBundle] Fix compile warnings (llvm#3700)
1 parent 12fb44f commit 9461df3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

llvm/include/llvm/Object/OffloadBundle.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ class OffloadBundleFatBin {
126126

127127
OffloadBundleFatBin(MemoryBufferRef Source, StringRef File,
128128
bool Decompress = false)
129-
: FileName(File), Decompressed(Decompress), NumberOfEntries(0),
130-
Entries(SmallVector<OffloadBundleEntry>()) {
129+
: FileName(File), NumberOfEntries(0),
130+
Entries(SmallVector<OffloadBundleEntry>()), Decompressed(Decompress) {
131131
if (Decompress) {
132132
DecompressedBuffer =
133133
MemoryBuffer::getMemBufferCopy(Source.getBuffer(), File);

llvm/lib/Object/OffloadBundle.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ Error OffloadBundleFatBin::readEntries(StringRef Buffer,
142142
return errorCodeToError(object_error::parse_failed);
143143

144144
auto Entry = std::make_unique<OffloadBundleEntry>(
145-
EntryOffset + SectionOffset, EntrySize, EntryIDSize,
146-
std::move(EntryID.str()));
145+
EntryOffset + SectionOffset, EntrySize, EntryIDSize, EntryID.str());
147146

148147
Entries.push_back(*Entry);
149148
}

0 commit comments

Comments
 (0)