diff options
author | flywind <xzsflywind@gmail.com> | 2022-01-04 18:10:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 11:10:46 +0100 |
commit | 0bcd7062c6e7a4131d166dacea41d661b7a09748 (patch) | |
tree | 974edb86c2396cc74fdd7136a99d388d2f040a0b /compiler | |
parent | 39a27783fc0d43e9828bb031cc811042226407b9 (diff) | |
download | Nim-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.nim | 4 |
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) |