Skip to content

Commit b6d4104

Browse files
committed
NFC: Address a couple of unused variable warnings.
1 parent 8fd77e3 commit b6d4104

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3381,13 +3381,6 @@ namespace {
33813381
d->getName() == "cos" || d->getName() == "exit";
33823382
return false;
33833383
};
3384-
auto topLevelModuleEq =
3385-
[](const clang::FunctionDecl *d, StringRef n) -> bool {
3386-
return d->getOwningModule() &&
3387-
d->getOwningModule()
3388-
->getTopLevelModule()
3389-
->getFullModuleName() == n;
3390-
};
33913384

33923385
if (clang::Module *owningModule = decl->getOwningModule();
33933386
owningModule && importer::isCxxStdModule(owningModule)) {

lib/SILOptimizer/Mandatory/MoveOnlyBorrowToDestructureUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,6 @@ bool BorrowToDestructureTransform::transform() {
16901690
auto *fn = mmci->getFunction();
16911691
LLVM_DEBUG(llvm::dbgs() << "Performing Borrow To Destructure Transform!\n";
16921692
fn->print(llvm::dbgs()));
1693-
auto &C = fn->getASTContext();
16941693
StackList<BeginBorrowInst *> borrowWorklist(mmci->getFunction());
16951694

16961695
// If we failed to gather borrows due to the transform not understanding part

0 commit comments

Comments
 (0)