Skip to content

Commit cfa2462

Browse files
committed
Fix metadata type.
1 parent de02be4 commit cfa2462

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/metadata.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export MDString, MDNode, operands
1+
export MDString, MDNode, operands, Metadata
22

33
@checked struct MetadataAsValue <: Value
44
ref::reftype(Value)
@@ -43,7 +43,8 @@ end
4343
@checked struct Metadata
4444
ref::API.LLVMMetadataRef
4545
end
46-
reftype(::Type{Metadata}) = API.LLVMMetdataRef
46+
reftype(::Type{Metadata}) = API.LLVMMetadataRef
47+
4748
function Value(md::Metadata, ctx::Context)
4849
return MetadataAsValue(API.LLVMMetadataAsValue(ref(ctx), md))
4950
end

0 commit comments

Comments
 (0)