mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 20:47:53 +00:00
(cherry picked from commit 8358974b73)
This commit is contained in:
@@ -760,7 +760,7 @@ proc genDeref(p: BProc, e: PNode, d: var TLoc) =
|
||||
# See tmissingderef. So we get rid of the deref instead. The codegen
|
||||
# ends up using 'memcpy' for the array assignment,
|
||||
# so the '&' and '*' cancel out:
|
||||
putIntoDest(p, d, lodeTyp(a.t[0]), rdLoc(a), a.storage)
|
||||
putIntoDest(p, d, e, rdLoc(a), a.storage)
|
||||
else:
|
||||
putIntoDest(p, d, e, "(*$1)" % [rdLoc(a)], a.storage)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user