parent
7435d912ad
commit
8358974b73
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
# See tmissingderef. So we get rid of the deref instead. The codegen
|
||||||
# ends up using 'memcpy' for the array assignment,
|
# ends up using 'memcpy' for the array assignment,
|
||||||
# so the '&' and '*' cancel out:
|
# 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:
|
else:
|
||||||
putIntoDest(p, d, e, "(*$1)" % [rdLoc(a)], a.storage)
|
putIntoDest(p, d, e, "(*$1)" % [rdLoc(a)], a.storage)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue