[llvm] r341508 - Fix some warnings.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 5 17:06:20 PDT 2018
Author: zturner
Date: Wed Sep 5 17:06:20 2018
New Revision: 341508
URL: http://llvm.org/viewvc/llvm-project?rev=341508&view=rev
Log:
Fix some warnings.
Modified:
llvm/trunk/lib/DebugInfo/PDB/PDBSymbol.cpp
llvm/trunk/lib/Testing/Support/SupportHelpers.cpp
Modified: llvm/trunk/lib/DebugInfo/PDB/PDBSymbol.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/PDBSymbol.cpp?rev=341508&r1=341507&r2=341508&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/PDBSymbol.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/PDBSymbol.cpp Wed Sep 5 17:06:20 2018
@@ -105,14 +105,14 @@ PDBSymbol::create(const IPDBSession &PDB
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 {
Modified: llvm/trunk/lib/Testing/Support/SupportHelpers.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Testing/Support/SupportHelpers.cpp?rev=341508&r1=341507&r2=341508&view=diff
==============================================================================
--- llvm/trunk/lib/Testing/Support/SupportHelpers.cpp (original)
+++ llvm/trunk/lib/Testing/Support/SupportHelpers.cpp Wed Sep 5 17:06:20 2018
@@ -32,5 +32,5 @@ SmallString<128> llvm::unittest::getInpu
Result.append((*File)->getBuffer().trim());
llvm::sys::path::append(Result, "Inputs");
llvm::sys::path::native(Result);
- return std::move(Result);
+ return Result;
}
More information about the llvm-commits
mailing list