[llvm] r323004 - Fix -Wunused-variable.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 14:56:04 PST 2018
Author: ruiu
Date: Fri Jan 19 14:56:04 2018
New Revision: 323004
URL: http://llvm.org/viewvc/llvm-project?rev=323004&view=rev
Log:
Fix -Wunused-variable.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp?rev=323004&r1=323003&r2=323004&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp Fri Jan 19 14:56:04 2018
@@ -216,7 +216,6 @@ RuntimeDyldImpl::loadObjectImpl(const ob
uint32_t Flags = Sym.getFlags();
if ((Flags & SymbolRef::SF_Common) || (Flags & SymbolRef::SF_Weak)) {
// Get symbol name.
- StringRef Name;
if (auto NameOrErr = Sym.getName())
Symbols.insert(*NameOrErr);
else
More information about the llvm-commits
mailing list