Skip to content

Commit

Permalink
correct the comments (nim-lang#19322)
Browse files Browse the repository at this point in the history
--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)
```
  • Loading branch information
ringabout authored and PMunch committed Mar 28, 2022
1 parent 411c483 commit 1f5ef2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/optimizer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1f5ef2b

Please sign in to comment.