summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-01-04 18:10:46 +0800
committerGitHub <noreply@github.com>2022-01-04 11:10:46 +0100
commit0bcd7062c6e7a4131d166dacea41d661b7a09748 (patch)
tree974edb86c2396cc74fdd7136a99d388d2f040a0b /compiler
parent39a27783fc0d43e9828bb031cc811042226407b9 (diff)
downloadNim-0bcd7062c6e7a4131d166dacea41d661b7a09748.tar.gz
correct the comments (#19322)
--expandArc

```
var
  a
  b
a = matrix(5, 5, 1.0)
b = matrix(5, 5, 2.0)
`=sink`(b, -
  let blitTmp = b
  wasMoved(b)
  blitTmp +
    a)
`=destroy`(b)
`=destroy`(a)
```
Diffstat (limited to 'compiler')
-rw-r--r--compiler/optimizer.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizer.nim b/compiler/optimizer.nim
index 744c82ab5..f484fdbf5 100644
--- a/compiler/optimizer.nim
+++ b/compiler/optimizer.nim
@@ -127,11 +127,11 @@ proc analyse(c: var Con; b: var BasicBlock; n: PNode) =
         for i in 0 ..< n.len:
           analyse(c, b, n[i])
       else:
-        #[ Test tmatrix.test3:
+        #[ Test destructor/tmatrix.test3:
         Prevent this from being elided. We should probably
         find a better solution...
 
-            `=sink`(b, - (
+            `=sink`(b, -
               let blitTmp = b;
               wasMoved(b);
               blitTmp + a)