File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -477,8 +477,7 @@ impl Cursor {
477477
478478 /// Is the referent an inlined function?
479479 pub fn is_inlined_function ( & self ) -> bool {
480- clang_Cursor_isFunctionInlined:: is_loaded ( ) &&
481- unsafe { clang_Cursor_isFunctionInlined ( self . x ) != 0 }
480+ unsafe { clang_Cursor_isFunctionInlined ( self . x ) != 0 }
482481 }
483482
484483 /// Get the width of this cursor's referent bit field, or `None` if the
@@ -1245,11 +1244,7 @@ impl Type {
12451244 pub fn named ( & self ) -> Type {
12461245 unsafe {
12471246 Type {
1248- x : if clang_Type_getNamedType:: is_loaded ( ) {
1249- clang_Type_getNamedType ( self . x )
1250- } else {
1251- self . x
1252- } ,
1247+ x : clang_Type_getNamedType ( self . x ) ,
12531248 }
12541249 }
12551250 }
@@ -1960,10 +1955,6 @@ pub struct EvalResult {
19601955impl EvalResult {
19611956 /// Evaluate `cursor` and return the result.
19621957 pub fn new ( cursor : Cursor ) -> Option < Self > {
1963- if !clang_Cursor_Evaluate:: is_loaded ( ) {
1964- return None ;
1965- }
1966-
19671958 // Work around https://bugs.llvm.org/show_bug.cgi?id=42532, see:
19681959 // * https://github.com/rust-lang/rust-bindgen/issues/283
19691960 // * https://github.com/rust-lang/rust-bindgen/issues/1590
You can’t perform that action at this time.
0 commit comments