Skip to content

Commit ae90b73

Browse files
sarnexsmallp-o-p
authored andcommitted
[clang-sycl-linker] Fix use of uninitialized memory in temp files (llvm#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 06e1a66 commit ae90b73

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)