Skip to content

Commit 51c2cee

Browse files
committed
[Immediate] Remove a redundant, pessimizing std::move().
Silences a warning on newer Clang versions.
1 parent 2df9931 commit 51c2cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Immediate/Immediate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ int swift::RunImmediately(CompilerInstance &CI, const ProcessCmdLine &CmdLine,
300300
// FIXME: We shouldn't need to use the global context here, but
301301
// something is persisting across calls to performIRGeneration.
302302
auto ModuleOwner = performIRGeneration(IRGenOpts, swiftModule,
303-
std::move(CI.takeSILModule()),
303+
CI.takeSILModule(),
304304
swiftModule->getName().str(),
305305
getGlobalLLVMContext());
306306
auto *Module = ModuleOwner.get();

0 commit comments

Comments
 (0)