Skip to content

Commit 0bcd706

Browse files
authored
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) ```
1 parent 39a2778 commit 0bcd706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/optimizer.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ proc analyse(c: var Con; b: var BasicBlock; n: PNode) =
127127
for i in 0 ..< n.len:
128128
analyse(c, b, n[i])
129129
else:
130-
#[ Test tmatrix.test3:
130+
#[ Test destructor/tmatrix.test3:
131131
Prevent this from being elided. We should probably
132132
find a better solution...
133133
134-
`=sink`(b, - (
134+
`=sink`(b, -
135135
let blitTmp = b;
136136
wasMoved(b);
137137
blitTmp + a)

0 commit comments

Comments
 (0)