summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WinCOFFObjectWriter.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-02-15 00:28:26 +0000
committerRui Ueyama <ruiu@google.com>2017-02-15 00:28:26 +0000
commit143b52c5663475a4f3aaae956d8f30e82ea1da50 (patch)
tree9c5533e5fd9d5b452e709966fcf8b178c10eb80d /llvm/lib/MC/WinCOFFObjectWriter.cpp
parenta8541675e080918d1b3eec85b8ee624007ba7d0e (diff)
downloadbcm5719-llvm-143b52c5663475a4f3aaae956d8f30e82ea1da50.tar.gz
bcm5719-llvm-143b52c5663475a4f3aaae956d8f30e82ea1da50.zip
Remove useless local variable.
llvm-svn: 295131
Diffstat (limited to 'llvm/lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WinCOFFObjectWriter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp
index b5dac823391..fcfb38d96c1 100644
--- a/llvm/lib/MC/WinCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp
@@ -300,9 +300,7 @@ void WinCOFFObjectWriter::defineSection(const MCSectionCOFF &Sec) {
coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
coff_section->Header.Characteristics = Sec.getCharacteristics();
-
- uint32_t &Characteristics = coff_section->Header.Characteristics;
- Characteristics |= getAlignment(Sec);
+ coff_section->Header.Characteristics |= getAlignment(Sec);
// Bind internal COFF section to MC section.
coff_section->MCSection = &Sec;
OpenPOWER on IntegriCloud