Skip to content

Commit 51227ad

Browse files
committed
[Clang][SYCL] Fix use of uninitalized memory in temp files
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent a1987be commit 51227ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Expected<StringRef> linkDeviceInputFiles(ArrayRef<std::string> InputFiles,
230230
CmdArgs.push_back("--suppress-warnings");
231231
if (Error Err = executeCommands(*LLVMLinkPath, CmdArgs))
232232
return std::move(Err);
233-
return *OutFileOrErr;
233+
return Args.MakeArgString(*OutFileOrErr);
234234
}
235235

236236
// This utility function is used to gather all SYCL device library files that

0 commit comments

Comments
 (0)