@@ -2053,8 +2053,9 @@ void tools::addX86AlignBranchArgs(const Driver &D, const ArgList &Args,
2053
2053
// /
2054
2054
static bool SDLSearch (const Driver &D, const llvm::opt::ArgList &DriverArgs,
2055
2055
llvm::opt::ArgStringList &CC1Args,
2056
- SmallVector<std::string, 8 > LibraryPaths, std::string Lib,
2057
- StringRef Arch, StringRef Target, bool isBitCodeSDL) {
2056
+ const SmallVectorImpl<std::string> &LibraryPaths,
2057
+ StringRef Lib, StringRef Arch, StringRef Target,
2058
+ bool isBitCodeSDL) {
2058
2059
SmallVector<std::string, 12 > SDLs;
2059
2060
2060
2061
std::string LibDeviceLoc = " /libdevice" ;
@@ -2131,8 +2132,9 @@ static bool SDLSearch(const Driver &D, const llvm::opt::ArgList &DriverArgs,
2131
2132
static bool GetSDLFromOffloadArchive (
2132
2133
Compilation &C, const Driver &D, const Tool &T, const JobAction &JA,
2133
2134
const InputInfoList &Inputs, const llvm::opt::ArgList &DriverArgs,
2134
- llvm::opt::ArgStringList &CC1Args, SmallVector<std::string, 8 > LibraryPaths,
2135
- StringRef Lib, StringRef Arch, StringRef Target, bool isBitCodeSDL) {
2135
+ llvm::opt::ArgStringList &CC1Args,
2136
+ const SmallVectorImpl<std::string> &LibraryPaths, StringRef Lib,
2137
+ StringRef Arch, StringRef Target, bool isBitCodeSDL) {
2136
2138
2137
2139
// We don't support bitcode archive bundles for nvptx
2138
2140
if (isBitCodeSDL && Arch.contains (" nvptx" ))
0 commit comments