Skip to content

Commit f02d418

Browse files
committed
Add pointer mangling.
1 parent d9b1b08 commit f02d418

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/irgen.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ end
109109
function mangle_param(t, substitutions)
110110
t == Nothing && return "v"
111111

112-
if isa(t, DataType) || isa(t, Core.Function)
112+
if isa(t, DataType) && t <: Ptr
113+
tn = mangle_param(eltype(t), substitutions)
114+
"P$tn"
115+
elseif isa(t, DataType) || isa(t, Core.Function)
113116
tn = safe_name(t)
114117

115118
# handle substitutions

0 commit comments

Comments
 (0)