Skip to content

Commit 2d1f471

Browse files
Gabriel Hjort Åkerlunddstenb
authored andcommitted
[Mach0] Fix unused-variable warnings
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D91519
1 parent 1983acc commit 2d1f471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/MachO/SymbolTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Symbol *SymbolTable::addDSOHandle(const MachHeaderSection *header) {
134134
// FIXME: Make every symbol (including absolute symbols) contain a
135135
// reference to their originating file, then add that file name to this
136136
// error message.
137-
if (auto *defined = dyn_cast<Defined>(s))
137+
if (isa<Defined>(s))
138138
error("found defined symbol with illegal name " + DSOHandle::name);
139139
}
140140
replaceSymbol<DSOHandle>(s, header);

0 commit comments

Comments
 (0)