Debug Info / PR22309: Allow union types to be emitted as unsigned constants.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.cpp
index 3d3da2ac1d312980abcf738e01d599f7904a7263..0d1979d7d83019a80b0fd3f6958fc0485c4c8b32 100644 (file)
@@ -584,7 +584,8 @@ static bool isUnsignedDIType(DwarfDebug *DD, DIType Ty) {
         T == dwarf::DW_TAG_ptr_to_member_type ||
         T == dwarf::DW_TAG_reference_type ||
         T == dwarf::DW_TAG_rvalue_reference_type ||
-        T == dwarf::DW_TAG_structure_type)
+        T == dwarf::DW_TAG_structure_type ||
+        T == dwarf::DW_TAG_union_type)
       return true;
     assert(T == dwarf::DW_TAG_typedef || T == dwarf::DW_TAG_const_type ||
            T == dwarf::DW_TAG_volatile_type ||