Fix some warnings.

llvm-svn: 341508
This commit is contained in:
Zachary Turner 2018-09-06 00:06:20 +00:00
parent 68902c7050
commit 5cda1b802d
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;
}