Using wrong DW_FORM.
authorJim Laskey <jlaskey@mac.com>
Tue, 14 Feb 2006 22:01:57 +0000 (22:01 +0000)
committerJim Laskey <jlaskey@mac.com>
Tue, 14 Feb 2006 22:01:57 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26184 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index f7bb0923bba21b4528512854a4cc8e6e47ab8dcc..dfa02ec0d44b61c1c433b082532f1723059e8d22 100644 (file)
@@ -941,7 +941,7 @@ DIE *DWContext::NewBasicType(const Type *Ty, unsigned Size, unsigned Align) {
     // construct the type DIE.
     TypeDie = new DIE(DW_TAG_base_type, DW_CHILDREN_no);
     TypeDie->AddString(DW_AT_name,      DW_FORM_string, Name);
-    TypeDie->AddUInt  (DW_AT_byte_size, DW_FORM_data1,  Size);
+    TypeDie->AddUInt  (DW_AT_byte_size, 0,              Size);
     TypeDie->AddUInt  (DW_AT_encoding,  DW_FORM_data1,  Encoding);
     TypeDie->Complete(DW);