[Mach0] Fix unused-variable warnings

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D91519
This commit is contained in:
Gabriel Hjort Åkerlund 2020-11-19 10:47:47 +01:00 committed by David Stenberg
parent 1983acce7c
commit 2d1f471e45
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ Symbol *SymbolTable::addDSOHandle(const MachHeaderSection *header) {
// FIXME: Make every symbol (including absolute symbols) contain a
// reference to their originating file, then add that file name to this
// error message.
if (auto *defined = dyn_cast<Defined>(s))
if (isa<Defined>(s))
error("found defined symbol with illegal name " + DSOHandle::name);
}
replaceSymbol<DSOHandle>(s, header);