File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ SymbolFileCTF::CreateInteger(const CTFInteger &ctf_integer) {
342
342
343
343
CompilerType compiler_type = m_ast->GetBasicType (basic_type);
344
344
345
- if (basic_type != eBasicTypeVoid) {
345
+ if (basic_type != eBasicTypeVoid && basic_type != eBasicTypeBool ) {
346
346
// Make sure the type we got is an integer type.
347
347
bool compiler_type_is_signed = false ;
348
348
if (!compiler_type.IsIntegerType (compiler_type_is_signed))
Original file line number Diff line number Diff line change @@ -838,8 +838,11 @@ lldb::BasicType TypeSystemClang::GetBasicTypeEnumeration(llvm::StringRef name) {
838
838
{" __int128_t" , eBasicTypeInt128},
839
839
{" __uint128_t" , eBasicTypeUnsignedInt128},
840
840
841
- // Miscellaneous
841
+ // "bool"
842
842
{" bool" , eBasicTypeBool},
843
+ {" _Bool" , eBasicTypeBool},
844
+
845
+ // Miscellaneous
843
846
{" float" , eBasicTypeFloat},
844
847
{" double" , eBasicTypeDouble},
845
848
{" long double" , eBasicTypeLongDouble},
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ MAKE_DSYM := YES
4
4
ifeq "$(COMPRESS_CTF ) " "YES"
5
5
COMPRESS := -c
6
6
else
7
- COMPRESS :=
7
+ COMPRESS :=
8
8
endif
9
9
10
10
all : a.out a.ctf
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ def do_test(self):
53
53
"[2] = 'b'" ,
54
54
"[3] = 'c'" ,
55
55
'u = (i = 1, s = "")' ,
56
+ "b = false" ,
56
57
"f = 0x0000000000000000" ,
57
58
],
58
59
)
Original file line number Diff line number Diff line change
1
+ #include <stdbool.h>
1
2
#include <stdio.h>
2
3
3
4
struct ForwardDecl ;
@@ -24,6 +25,7 @@ typedef struct MyNestedStruct {
24
25
char a [4 ];
25
26
MyEnumT e ;
26
27
MyUnionT u ;
28
+ _Bool b ;
27
29
} MyNestedStructT ;
28
30
29
31
typedef struct MyStruct {
@@ -54,6 +56,7 @@ void populate(MyInt i) {
54
56
foo .n .a [2 ] = 'c' ;
55
57
foo .n .a [3 ] = 'd' ;
56
58
foo .n .e = eOne ;
59
+ foo .n .b = false;
57
60
foo .f = NULL ;
58
61
forward = NULL ;
59
62
bar .b = i ;
You can’t perform that action at this time.
0 commit comments