Loading llvm/include/llvm/Bitstream/BitstreamReader.h +3 −3 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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; } Loading @@ -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; } } Loading llvm/include/llvm/DebugInfo/CodeView/CVRecord.h +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading llvm/include/llvm/DebugInfo/CodeView/SymbolDeserializer.h +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading llvm/include/llvm/DebugInfo/CodeView/TypeDeserializer.h +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
llvm/include/llvm/Bitstream/BitstreamReader.h +3 −3 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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; } Loading @@ -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; } } Loading
llvm/include/llvm/DebugInfo/CodeView/CVRecord.h +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading
llvm/include/llvm/DebugInfo/CodeView/SymbolDeserializer.h +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading
llvm/include/llvm/DebugInfo/CodeView/TypeDeserializer.h +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading
llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h +1 −1 Original line number Diff line number Diff line Loading @@ -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