We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 662d88c commit 5a953beCopy full SHA for 5a953be
lldb/source/Plugins/TypeSystem/D/TypeSystemD.cpp
@@ -675,12 +675,20 @@ TypeSystemD::CreateBaseType(DTypeKind kind) {
675
CompilerType
676
TypeSystemD::GetBuiltinTypeForDWARFEncodingAndBitSize(uint32_t dw_ate, uint32_t bit_size)
677
{
678
- //TODO: Use bit_size
+ auto IsMatch = [&](DTypeKind kind) {
679
+ llvm::Optional<uint64_t> BS = DType::GetBitSize(kind, m_target_triple);
680
+ if (BS.hasValue())
681
+ return BS.getValue() == bit_size;
682
+
683
+ return false;
684
+ };
685
686
switch(dw_ate)
687
688
case DW_ATE_boolean:
- return CreateBaseType(eDTypeKindBool);
689
+ if (IsMatch(eDTypeKindBool))
690
+ return CreateBaseType(eDTypeKindBool);
691
+ break;
692
default:
693
break;
694
}
0 commit comments