mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-14 02:54:59 +00:00
progress
This commit is contained in:
@@ -958,8 +958,6 @@ proc p(n: PNode; c: var Con; s: var Scope; mode: ProcessMode; tmpFlags = {sfSing
|
||||
if canRaise(n[0]): s.needsTry = true
|
||||
# A raising call needs owned storage even when its value is consumed: the
|
||||
# callee can partially initialize the result before control unwinds.
|
||||
# Keep the call directly below `spawn` intact. Spawn lowering requires a
|
||||
# call node and moves it into a generated proc that gets destructor
|
||||
# injection of its own.
|
||||
if mode == normal or (canRaise(n[0]) and inSpawn == 0):
|
||||
if result.typ != nil and result.typ.kind notin {tyOpenArray, tyVarargs}:
|
||||
|
||||
Reference in New Issue
Block a user