[lld] 2d1f471 - [Mach0] Fix unused-variable warnings
David Stenberg via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 19 01:52:20 PST 2020
Author: Gabriel Hjort Ã…kerlund
Date: 2020-11-19T10:51:15+01:00
New Revision: 2d1f471e45af817e39f50ec88079cbbbf2580842
URL: https://github.com/llvm/llvm-project/commit/2d1f471e45af817e39f50ec88079cbbbf2580842
DIFF: https://github.com/llvm/llvm-project/commit/2d1f471e45af817e39f50ec88079cbbbf2580842.diff
LOG: [Mach0] Fix unused-variable warnings
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D91519
Added:
Modified:
lld/MachO/SymbolTable.cpp
Removed:
################################################################################
diff --git a/lld/MachO/SymbolTable.cpp b/lld/MachO/SymbolTable.cpp
index 6a3ee9230f41..ecf8f94239e1 100644
--- a/lld/MachO/SymbolTable.cpp
+++ b/lld/MachO/SymbolTable.cpp
@@ -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);
More information about the llvm-commits
mailing list