1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Fix some warnings.

llvm-svn: 341508
This commit is contained in:
Zachary Turner 2018-09-06 00:06:20 +00:00
parent 910d9dfcf8
commit 70d3512e38
2 changed files with 3 additions and 3 deletions

View File

@ -105,14 +105,14 @@ PDBSymbol::create(const IPDBSession &PDBSession,
auto SymbolPtr = createSymbol(PDBSession, RawSymbol->getSymTag());
SymbolPtr->RawSymbol = RawSymbol.get();
SymbolPtr->OwnedRawSymbol = std::move(RawSymbol);
return std::move(SymbolPtr);
return SymbolPtr;
}
std::unique_ptr<PDBSymbol> PDBSymbol::create(const IPDBSession &PDBSession,
IPDBRawSymbol &RawSymbol) {
auto SymbolPtr = createSymbol(PDBSession, RawSymbol.getSymTag());
SymbolPtr->RawSymbol = &RawSymbol;
return std::move(SymbolPtr);
return SymbolPtr;
}
void PDBSymbol::defaultDump(raw_ostream &OS, int Indent) const {

View File

@ -32,5 +32,5 @@ SmallString<128> llvm::unittest::getInputFileDirectory() {
Result.append((*File)->getBuffer().trim());
llvm::sys::path::append(Result, "Inputs");
llvm::sys::path::native(Result);
return std::move(Result);
return Result;
}