[llvm-commits] [llvm] r86043 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Devang Patel
dpatel at apple.com
Wed Nov 4 11:37:40 PST 2009
Author: dpatel
Date: Wed Nov 4 13:37:40 2009
New Revision: 86043
URL: http://llvm.org/viewvc/llvm-project?rev=86043&view=rev
Log:
Array element size does not match array size but array is not a bitfield.
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=86043&r1=86042&r2=86043&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed Nov 4 13:37:40 2009
@@ -1138,7 +1138,9 @@
AddSourceLine(MemberDie, &DT);
uint64_t Size = DT.getSizeInBits();
- uint64_t FieldSize = DT.getOriginalTypeSize();
+ uint64_t FieldSize = Size;
+ if (DT.getTypeDerivedFrom().getTag() != dwarf::DW_TAG_array_type)
+ FieldSize = DT.getOriginalTypeSize();
if (Size != FieldSize) {
// Handle bitfield.
More information about the llvm-commits
mailing list