[llvm] r295131 - Remove useless local variable.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 14 16:28:26 PST 2017
Author: ruiu
Date: Tue Feb 14 18:28:26 2017
New Revision: 295131
URL: http://llvm.org/viewvc/llvm-project?rev=295131&view=rev
Log:
Remove useless local variable.
Modified:
llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=295131&r1=295130&r2=295131&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Tue Feb 14 18:28:26 2017
@@ -300,9 +300,7 @@ void WinCOFFObjectWriter::defineSection(
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;
More information about the llvm-commits
mailing list