Skip to content

Commit c3e5ea1

Browse files
committed
Formatting
1 parent ca74702 commit c3e5ea1

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)