Skip to content

Commit 9082d90

Browse files
committed
Add an eltype method to avoid invalidations.
1 parent 54cbc92 commit 9082d90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/type.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ export LLVMType, issized, context, show
33
# subtypes are expected to have a 'ref::API.LLVMTypeRef' field
44
abstract type LLVMType end
55

6+
Base.eltype(typ::LLVMType) = Any
7+
68
Base.unsafe_convert(::Type{API.LLVMTypeRef}, typ::LLVMType) = typ.ref
79

810
identify(::Type{LLVMType}, ref::API.LLVMTypeRef) =

0 commit comments

Comments
 (0)