mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-08 03:26:34 +00:00
Remove an unnecessary std::move to fix -Wpessimizing-move warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33543a37a7
commit
86b7e4c701
@ -57,7 +57,7 @@ std::unique_ptr<Module> parseMIR(legacy::PassManagerBase &PM,
|
||||
|
||||
SMDiagnostic Diagnostic;
|
||||
std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRCode);
|
||||
MIR = std::move(createMIRParser(std::move(MBuffer), Context));
|
||||
MIR = createMIRParser(std::move(MBuffer), Context);
|
||||
if (!MIR)
|
||||
return nullptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user