projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d48d61
)
Array element size does not match array size but array is not a bitfield.
author
Devang Patel
<dpatel@apple.com>
Wed, 4 Nov 2009 19:37:40 +0000
(19:37 +0000)
committer
Devang Patel
<dpatel@apple.com>
Wed, 4 Nov 2009 19:37:40 +0000
(19:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86043
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 23752c4ba8420e5e4ec5395a0d0cfd2003764b4a..674304e7b36112f82cbc8b06bb40dea93a8cb54e 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-1138,7
+1138,9
@@
DIE *DwarfDebug::CreateMemberDIE(CompileUnit *DW_Unit, const DIDerivedType &DT){
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.