Skip to content

Commit 4ca4115

Browse files
authored
[clang-linker-wrapper][NFC] Remove dead code (#16879)
InputFiles variable defined in the function is not used. If statements below define local scope variables with the same name.
1 parent 5b292cd commit 4ca4115

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,14 +2362,6 @@ Expected<SmallVector<StringRef>> linkAndWrapDeviceFiles(
23622362
HasNonSYCLOffloadKinds = true;
23632363
}
23642364

2365-
// Write any remaining device inputs to an output file.
2366-
SmallVector<StringRef> InputFiles;
2367-
for (const OffloadFile &File : Input) {
2368-
auto FileNameOrErr = writeOffloadFile(File);
2369-
if (!FileNameOrErr)
2370-
return FileNameOrErr.takeError();
2371-
InputFiles.emplace_back(*FileNameOrErr);
2372-
}
23732365
if (HasSYCLOffloadKind) {
23742366
SmallVector<StringRef> InputFiles;
23752367
// Write device inputs to an output file for the linker.

0 commit comments

Comments
 (0)