Skip to content

Commit 1f404bd

Browse files
sarnexNoumanAmir657
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 <nick.sarnie@intel.com>
1 parent d44ef68 commit 1f404bd

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)