about summary refs log tree commit diff stats
path: root/035lookup.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-05-03 17:38:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-05-03 17:38:33 -0700
commit6e793202e3dd9a89b88ab291cebbcb788337c592 (patch)
tree964576ac4bca556076c5fe09c4f0323f6e78f774 /035lookup.cc
parent191e9bb224cad7c3ea62d986a89a9aa6301c1966 (diff)
downloadmu-6e793202e3dd9a89b88ab291cebbcb788337c592.tar.gz
2898 - start filling in missing refcounts
This commit covers instructions 'put', 'put-index' and 'maybe-convert'.
Next up are the harder ones: 'copy' and 'merge'. In these cases there's
a non-scalar being copied, and we need to figure out which locations
within it need to update their refcount.
Diffstat (limited to '035lookup.cc')
-rw-r--r--035lookup.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/035lookup.cc b/035lookup.cc
index 2a7cb2e3..63897ba9 100644
--- a/035lookup.cc
+++ b/035lookup.cc
@@ -350,8 +350,8 @@ def main [
   1:address:number-or-point <- copy 10/unsafe
   2:number, 3:boolean <- maybe-convert 1:address:number-or-point/lookup, i:variant
 ]
-+mem: storing 34 in location 2
 +mem: storing 1 in location 3
++mem: storing 34 in location 2
 
 :(scenario maybe_convert_indirect_2)
 def main [
@@ -361,8 +361,8 @@ def main [
   2:address:number <- copy 20/unsafe
   2:address:number/lookup, 3:boolean <- maybe-convert 1:address:number-or-point/lookup, i:variant
 ]
-+mem: storing 34 in location 21
 +mem: storing 1 in location 3
++mem: storing 34 in location 21
 
 :(scenario maybe_convert_indirect_3)
 def main [
@@ -372,8 +372,8 @@ def main [
   2:address:boolean <- copy 20/unsafe
   3:number, 2:address:boolean/lookup <- maybe-convert 1:address:number-or-point/lookup, i:variant
 ]
-+mem: storing 34 in location 3
 +mem: storing 1 in location 21
++mem: storing 34 in location 3
 
 :(before "Update MAYBE_CONVERT base in Check")
 if (!canonize_type(base)) break;