Skip to content

Commit 20ad5ee

Browse files
committed
address review comments.
Signed-off-by: jinge90 <[email protected]>
1 parent 236d3f8 commit 20ad5ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11281,9 +11281,9 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
1128111281
// Note: For AMD targets, we do not pass any SYCL device libraries.
1128211282
if (TC->getTriple().isSPIROrSPIRV() || TC->getTriple().isNVPTX()) {
1128311283
TargetTriple = TC->getTriple();
11284-
SmallVector<std::string, 8> SYCLDeviceLibs;
1128511284
bool IsSpirvAOT = TargetTriple.isSPIRAOT();
11286-
SYCLDeviceLibs = SYCL::getDeviceLibraries(C, TargetTriple, IsSpirvAOT);
11285+
SmallVector<std::string, 8> SYCLDeviceLibs =
11286+
SYCL::getDeviceLibraries(C, TargetTriple, IsSpirvAOT);
1128711287
for (const auto &AddLib : SYCLDeviceLibs) {
1128811288
if (LibList.size() > 0)
1128911289
LibList += ",";

0 commit comments

Comments
 (0)