diff --git a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp index 0639b95c76e21..fa37cbeb56316 100644 --- a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp +++ b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp @@ -237,7 +237,7 @@ Expected linkDeviceInputFiles(ArrayRef InputFiles, // will be linked with input device files. // The list of files and its location are passed from driver. Expected> getSYCLDeviceLibs(const ArgList &Args) { - SmallVector DeviceLibFiles; + SmallVector DeviceLibFiles{}; StringRef LibraryPath; if (Arg *A = Args.getLastArg(OPT_library_path_EQ)) LibraryPath = A->getValue();