Skip to content

Commit 9cfc107

Browse files
committed
Initialize SmallVector variable
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent 9ce0a61 commit 9cfc107

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
@@ -237,7 +237,7 @@ Expected<StringRef> linkDeviceInputFiles(ArrayRef<std::string> InputFiles,
237237
// will be linked with input device files.
238238
// The list of files and its location are passed from driver.
239239
Expected<SmallVector<std::string>> getSYCLDeviceLibs(const ArgList &Args) {
240-
SmallVector<std::string> DeviceLibFiles;
240+
SmallVector<std::string> DeviceLibFiles{};
241241
StringRef LibraryPath;
242242
if (Arg *A = Args.getLastArg(OPT_library_path_EQ))
243243
LibraryPath = A->getValue();

0 commit comments

Comments
 (0)