Skip to content

Commit 83ce977

Browse files
authored
[clang-sycl-linker] Fix use of uninitialized memory in temp files (#114488)
This fixes the current sanitizer CI [failures](https://lab.llvm.org/buildbot/#/builders/169/builds/4839/steps/13/logs/stdio). I manually confirmed the fix with a MemorySanitizer build. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 4ed7bcb commit 83ce977

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)