summary refs log tree commit diff stats
path: root/tests/arc/topt_no_cursor.nim
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2021-02-09 14:20:58 +0100
committerGitHub <noreply@github.com>2021-02-09 14:20:58 +0100
commitab740cb5b9bfbacece26956fa2444763a790ccd1 (patch)
tree5966ee8556cfe937d97254eda533fab024cd70d2 /tests/arc/topt_no_cursor.nim
parent74d6a4d7f4fb9fb00632150f666e4de1cc5f7c63 (diff)
downloadNim-ab740cb5b9bfbacece26956fa2444763a790ccd1.tar.gz
ARC Analysis in one pass (#16849)
* Analyse last reads all at once

* Integrate firstWrite analysis

* Small cleanup

* Use sets instead of seqs

* Remove instrTargets

* Reap the benefits

* Implement error diagnostics

* Operate on DFA index for lastRead analysis

* Use mgetOrPut
Diffstat (limited to 'tests/arc/topt_no_cursor.nim')
-rw-r--r--tests/arc/topt_no_cursor.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/arc/topt_no_cursor.nim b/tests/arc/topt_no_cursor.nim
index 3d37e6269..6fa19b24a 100644
--- a/tests/arc/topt_no_cursor.nim
+++ b/tests/arc/topt_no_cursor.nim
@@ -52,7 +52,7 @@ _ = (
   blitTmp, ";")
 lvalue = _[0]
 lnext = _[1]
-`=sink`(result.value, move lvalue)
+result.value = move lvalue
 `=destroy`(lnext)
 `=destroy_1`(lvalue)
 -- end of expandArc ------------------------