]> granicus.if.org Git - llvm/commitdiff
Remove useless local variable.
authorRui Ueyama <ruiu@google.com>
Wed, 15 Feb 2017 00:28:26 +0000 (00:28 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 15 Feb 2017 00:28:26 +0000 (00:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295131 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/WinCOFFObjectWriter.cpp

index b5dac8233910101d98a55a714a280a75273f2c32..fcfb38d96c1a7e6f03b556d6951074dc8eacd580 100644 (file)
@@ -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;