Skip to content

Commit cb503ee

Browse files
timholyvtjnash
andauthored
Update contrib/juliac/abi_export.jl
Co-authored-by: Jameson Nash <[email protected]>
1 parent 6161dab commit cb503ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/juliac/abi_export.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function emit_struct_info!(ctx::TypeEmitter, @nospecialize(dt::DataType); indent
9595
let indented_println(args...) = println(ctx.io, " " ^ indent, args...)
9696
indented_println("{")
9797
indented_println(" \"id\": ", type_id, ",")
98-
indented_println(" \"kind\": \"struct\",")
98+
indented_println(ismutabletype(dt) ?(" \"kind\": \"mutable struct\",") : " \"kind\": \"struct\",")
9999
indented_println(" \"name\": ", type_name_json(dt), ",")
100100
indented_println(" \"size\": ", Core.sizeof(dt), ",")
101101
indented_println(" \"alignment\": ", Base.datatype_alignment(dt), ",")

0 commit comments

Comments
 (0)