File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ impl Type {
640
640
let ret = Type {
641
641
x : unsafe { clang_getPointeeType ( self . x ) } ,
642
642
} ;
643
- debug_assert ! ( ret. kind ( ) != CXType_Invalid ) ;
643
+ debug_assert ! ( ret. is_valid ( ) ) ;
644
644
Some ( ret)
645
645
}
646
646
_ => None ,
@@ -653,7 +653,7 @@ impl Type {
653
653
let current_type = Type {
654
654
x : unsafe { clang_getElementType ( self . x ) } ,
655
655
} ;
656
- if current_type. kind ( ) != CXType_Invalid {
656
+ if current_type. is_valid ( ) {
657
657
Some ( current_type)
658
658
} else {
659
659
None
@@ -692,10 +692,10 @@ impl Type {
692
692
let rt = Type {
693
693
x : unsafe { clang_getResultType ( self . x ) } ,
694
694
} ;
695
- if rt. kind ( ) == CXType_Invalid {
696
- None
697
- } else {
695
+ if rt. is_valid ( ) {
698
696
Some ( rt)
697
+ } else {
698
+ None
699
699
}
700
700
}
701
701
You can’t perform that action at this time.
0 commit comments