Skip to content

Commit

Permalink
[clang-linker-wrapper][NFC] Remove dead code
Browse files Browse the repository at this point in the history
InputFiles variable defined in the function is not used. If statements
below define local scope variables with the same name.
  • Loading branch information
bader committed Feb 3, 2025
1 parent 29044ff commit 8809908
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2364,14 +2364,6 @@ Expected<SmallVector<StringRef>> linkAndWrapDeviceFiles(
HasNonSYCLOffloadKinds = true;
}

// Write any remaining device inputs to an output file.
SmallVector<StringRef> InputFiles;
for (const OffloadFile &File : Input) {
auto FileNameOrErr = writeOffloadFile(File);
if (!FileNameOrErr)
return FileNameOrErr.takeError();
InputFiles.emplace_back(*FileNameOrErr);
}
if (HasSYCLOffloadKind) {
SmallVector<StringRef> InputFiles;
// Write device inputs to an output file for the linker.
Expand Down

0 comments on commit 8809908

Please sign in to comment.