llvm.org GIT mirror llvm / f2cd8ff
[Coverage] Speculative fix for r363325 for an older compiler It looks like an older version of gcc can't figure out that it needs to move a unique_ptr while implicitly constructing an Expected object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363342 91177308-0d34-0410-b5e6-96231b3b80d8 Vedant Kumar 3 months ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
615615 return std::move(E);
616616 } else
617617 return make_error(coveragemap_error::malformed);
618 return Reader;
618 return std::move(Reader);
619619 }
620620
621621 static Expected>
740740 if (!ReaderOrErr)
741741 return ReaderOrErr.takeError();
742742 Readers.push_back(std::move(ReaderOrErr.get()));
743 return Readers;
743 return std::move(Readers);
744744 }
745745
746746 auto BinOrErr = createBinary(ObjectBuffer);
794794 for (auto &Buffer : Ar->takeThinBuffers())
795795 ObjectFileBuffers.push_back(std::move(Buffer));
796796
797 return Readers;
797 return std::move(Readers);
798798 }
799799
800800 auto ReaderOrErr = loadBinaryFormat(std::move(Bin), Arch);
801801 if (!ReaderOrErr)
802802 return ReaderOrErr.takeError();
803803 Readers.push_back(std::move(ReaderOrErr.get()));
804 return Readers;
804 return std::move(Readers);
805805 }
806806
807807 Error BinaryCoverageReader::readNextRecord(CoverageMappingRecord &Record) {