Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
05729bff
Commit
05729bff
authored
Nov 23, 2017
by
John van Groningen
Browse files
fix bug in fusion: keep type when copying a FreeVar
parent
98c20caf
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/trans.icl
View file @
05729bff
...
...
@@ -5043,7 +5043,7 @@ instance copy FreeVar
where
copy
fv
=:{
fv_info_ptr
,
fv_ident
}
ci
cs
=:{
cs_var_heap
}
#
(
new_info_ptr
,
cs_var_heap
)
=
newPtr
VI_Empty
cs_var_heap
=
({
fv
&
fv_info_ptr
=
new_info_ptr
},
{
cs
&
cs_var_heap
=
write
Ptr
fv_info_ptr
(
VI_Variable
fv_ident
new_info_ptr
)
cs_var_heap
})
=
({
fv
&
fv_info_ptr
=
new_info_ptr
},
{
cs
&
cs_var_heap
=
write
VarInfo
fv_info_ptr
(
VI_Variable
fv_ident
new_info_ptr
)
cs_var_heap
})
instance
copy
App
where
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment