Skip to content

Commit 255a740

Browse files
[NFC][SYCL RTC] Use std::move in a few places (#20285)
Found by the Coverity scan.
1 parent 753ab35 commit 255a740

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ class SYCLToolchain {
170170
llvm::vfs::getRealFileSystem());
171171
FS->pushOverlay(ToolchainFS);
172172
if (FSOverlay)
173-
FS->pushOverlay(FSOverlay);
173+
FS->pushOverlay(std::move(FSOverlay));
174174

175175
auto Files = llvm::makeIntrusiveRefCnt<clang::FileManager>(
176176
clang::FileSystemOptions{"." /* WorkingDir */}, FS);
177177

178178
Action A{FEAction};
179-
ToolInvocation TI{CommandLine, &A, Files.get(),
179+
ToolInvocation TI{std::move(CommandLine), &A, Files.get(),
180180
std::make_shared<PCHContainerOperations>()};
181181
TI.setDiagnosticConsumer(DiagConsumer ? DiagConsumer : &IgnoreDiag);
182182

0 commit comments

Comments
 (0)