diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-10-22 17:28:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 17:28:43 +0200 |
commit | 8358974b73afe8db06822779f2a28adbafc58280 (patch) | |
tree | 450a8646c56ec50d8e8690bd188d34894235e0b5 /compiler | |
parent | 7435d912adcf411feed4ba124808527c7e04a44f (diff) | |
download | Nim-8358974b73afe8db06822779f2a28adbafc58280.tar.gz |
fixes #15652 [backport:1.4] (#15679)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 004b8f41e..b2a325632 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -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) |