Commit a62078e
committed
Fix LLVM 22 FFI pointer resolution for forward-declared types
On LLVM 22 (no ElaboratedType), type.pointee.canonical.declaration
resolves to the forward declaration cursor instead of the definition
cursor. forward_declaration? returns true for types like B and C that
have both a forward declaration AND a definition, incorrectly treating
them as opaque. opaque_declaration? correctly distinguishes: it only
returns true when there's no definition at all (like Opaque).1 parent 21c14c1 commit a62078e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
0 commit comments