forked from OSchip/llvm-project
[Mach0] Fix unused-variable warnings
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D91519
This commit is contained in:
parent
1983acce7c
commit
2d1f471e45
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue