File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -6030,16 +6030,17 @@ class OffloadingActionBuilder final {
60306030
60316031 bool addSYCLDeviceLibs (const ToolChain *TC, ActionList &DeviceLinkObjects,
60326032 bool isSpirvAOT, bool isMSVCEnv, bool isNativeCPU,
6033- Action *&NativeCPULib, const char *BoundArch, DerivedArgList &Args) {
6033+ Action *&NativeCPULib, const char *BoundArch,
6034+ DerivedArgList &Args) {
60346035 int NumOfDeviceLibLinked = 0 ;
60356036 SmallVector<SmallString<128 >, 4 > LibLocCandidates;
6036- if (Args.hasArg (options::OPT_fsycl_libdevice_path_EQ)) {
6037- auto ProvidedPath =
6038- Args.getLastArgValue (options::OPT_fsycl_libdevice_path_EQ).str ();
6039- if (llvm::sys::fs::exists (ProvidedPath)) {
6040- SmallString<128 > ProvidedPathSS (ProvidedPath);
6041- LibLocCandidates.push_back (ProvidedPathSS);
6042- }
6037+ if (Args.hasArg (options::OPT_fsycl_libdevice_path_EQ)) {
6038+ auto ProvidedPath =
6039+ Args.getLastArgValue (options::OPT_fsycl_libdevice_path_EQ).str ();
6040+ if (llvm::sys::fs::exists (ProvidedPath)) {
6041+ SmallString<128 > ProvidedPathSS (ProvidedPath);
6042+ LibLocCandidates.push_back (ProvidedPathSS);
6043+ }
60436044 }
60446045 SYCLInstallation.getSYCLDeviceLibPath (LibLocCandidates);
60456046
You can’t perform that action at this time.
0 commit comments