Commit 1c2241a7 authored by Bill Wendling's avatar Bill Wendling
Browse files

Remove redundant "std::move"s in return statements

parent a67db836
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ public:
    unsigned BitsLeft = NumBits - BitsInCurWord;

    if (Error fillResult = fillCurWord())
      return std::move(fillResult);
      return fillResult;

    // If we run out of data, abort.
    if (BitsLeft > BitsInCurWord)
@@ -425,7 +425,7 @@ public:
        // We read and accumulate abbrev's, the client can't do anything with
        // them anyway.
        if (Error Err = ReadAbbrevRecord())
          return std::move(Err);
          return Err;
        continue;
      }

@@ -448,7 +448,7 @@ public:

      // If we found a sub-block, just skip over it and check the next entry.
      if (Error Err = SkipBlock())
        return std::move(Err);
        return Err;
    }
  }

+2 −2
Original line number Diff line number Diff line
@@ -100,14 +100,14 @@ inline Expected<CVRecord<Kind>> readCVRecordFromStream(BinaryStreamRef Stream,
  Reader.setOffset(Offset);

  if (auto EC = Reader.readObject(Prefix))
    return std::move(EC);
    return EC;
  if (Prefix->RecordLen < 2)
    return make_error<CodeViewError>(cv_error_code::corrupt_record);

  Reader.setOffset(Offset);
  ArrayRef<uint8_t> RawData;
  if (auto EC = Reader.readBytes(RawData, Prefix->RecordLen + sizeof(uint16_t)))
    return std::move(EC);
    return EC;
  return codeview::CVRecord<Kind>(RawData);
}

+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ public:
  template <typename T> static Expected<T> deserializeAs(CVSymbol Symbol) {
    T Record(static_cast<SymbolRecordKind>(Symbol.kind()));
    if (auto EC = deserializeAs<T>(Symbol, Record))
      return std::move(EC);
      return EC;
    return Record;
  }

+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ public:
    T Record(K);
    CVType CVT(Data);
    if (auto EC = deserializeAs<T>(CVT, Record))
      return std::move(EC);
      return EC;
    return Record;
  }

+1 −1
Original line number Diff line number Diff line
@@ -280,7 +280,7 @@ DWARFListTableBase<DWARFListType>::findList(DWARFDataExtractor Data,
  if (Error E =
          List.extract(Data, getHeaderOffset(), End, &Offset,
                       Header.getSectionName(), Header.getListTypeString()))
    return std::move(E);
    return E;
  ListMap[StartingOffset] = List;
  return List;
}
Loading