[llvm-commits] [llvm] r92920 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Jan 7 09:50:57 PST 2010
Author: d0k
Date: Thu Jan 7 11:50:57 2010
New Revision: 92920
URL: http://llvm.org/viewvc/llvm-project?rev=92920&view=rev
Log:
Kill dead store.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=92920&r1=92919&r2=92920&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Jan 7 11:50:57 2010
@@ -1089,10 +1089,9 @@
addUInt(MemberDie, dwarf::DW_AT_bit_size, 0, DT.getSizeInBits());
uint64_t Offset = DT.getOffsetInBits();
- uint64_t FieldOffset = Offset;
uint64_t AlignMask = ~(DT.getAlignInBits() - 1);
uint64_t HiMark = (Offset + FieldSize) & AlignMask;
- FieldOffset = (HiMark - FieldSize);
+ uint64_t FieldOffset = (HiMark - FieldSize);
Offset -= FieldOffset;
// Maybe we need to work from the other end.
More information about the llvm-commits
mailing list