diff options
author | Araq <rumpf_a@web.de> | 2020-07-10 12:27:32 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-07-10 13:36:02 +0200 |
commit | 4603197fe8f2c6fb1fd74fa7ad5b4ef510e8bfb7 (patch) | |
tree | 87564d79146e2d032b26f39934d23d680e7ca87d /compiler | |
parent | 112511084d61edc0bb748ff8c267fb54bc7e9716 (diff) | |
download | Nim-4603197fe8f2c6fb1fd74fa7ad5b4ef510e8bfb7.tar.gz |
fixes a minor regression
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/injectdestructors.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/injectdestructors.nim b/compiler/injectdestructors.nim index d091e8e29..da41b2d5c 100644 --- a/compiler/injectdestructors.nim +++ b/compiler/injectdestructors.nim @@ -555,7 +555,7 @@ proc ensureDestruction(arg, orig: PNode; c: var Con; s: var Scope): PNode = result = newNodeIT(nkStmtListExpr, arg.info, arg.typ) if orig == s.escapingExpr and s.parent != nil: let tmp = c.getTemp(s.parent[], arg.typ, arg.info) - result.add c.genSink(s.parent[], tmp, arg, isDecl = true) + result.add c.genSink(s, tmp, arg, isDecl = true) result.add tmp s.parent[].final.add c.genDestroy(tmp) else: |