diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-29 23:27:45 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-29 23:27:45 +0000 |
commit | 76122f9c13e7b840687de2b8d5767c73dac02a3b (patch) | |
tree | a4015229965b1b958e9bdd77fa7820ff90e8e7da /lib | |
parent | d8acb289a2bac1059df2c13755afa634e576e83f (diff) | |
download | external_llvm-76122f9c13e7b840687de2b8d5767c73dac02a3b.zip external_llvm-76122f9c13e7b840687de2b8d5767c73dac02a3b.tar.gz external_llvm-76122f9c13e7b840687de2b8d5767c73dac02a3b.tar.bz2 |
Remove unused variable (unused since r173839)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/WinCOFFObjectWriter.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index fc7aa94..6dffed7 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -423,14 +423,11 @@ void WinCOFFObjectWriter::DefineSymbol(MCSymbol const &Symbol, if (Symbol.isVariable()) { coff_symbol->Data.StorageClass = COFF::IMAGE_SYM_CLASS_WEAK_EXTERNAL; - const MCExpr *Value = Symbol.getVariableValue(); // FIXME: This assert message isn't very good. - assert(Value->getKind() == MCExpr::SymbolRef && + assert(Symbol.getVariableValue()->getKind() == MCExpr::SymbolRef && "Value must be a SymbolRef!"); - const MCSymbolRefExpr *SymbolRef = - static_cast<const MCSymbolRefExpr *>(Value); coff_symbol->Other = GetOrCreateCOFFSymbol(&Symbol); } else { std::string WeakName = std::string(".weak.") |