* revert #12217 since the root problem seems to have been fixed; fix #15974;fix #12551; fix #19464 * fix #16020; fix #16780 * fix tests and #16613 * fix #14553 * fix #19909; skip skipRegisterAddr * fix #18641
This commit is contained in:
parent
a65db5e2e9
commit
3cb2d7af05
4 changed files with 263 additions and 14 deletions
|
|
@ -1382,9 +1382,6 @@ proc unneededIndirection(n: PNode): bool =
|
|||
n.typ.skipTypes(abstractInstOwned-{tyTypeDesc}).kind == tyRef
|
||||
|
||||
proc canElimAddr(n: PNode): PNode =
|
||||
if n[0].typ.skipTypes(abstractInst).kind in {tyObject, tyTuple, tyArray}:
|
||||
# objects are reference types in the VM
|
||||
return n[0]
|
||||
case n[0].kind
|
||||
of nkObjUpConv, nkObjDownConv, nkChckRange, nkChckRangeF, nkChckRange64:
|
||||
var m = n[0][0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue