From e31ac81899767e4cebb706ed473dae7ff6f0afd7 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 29 May 2020 12:08:17 +0200 Subject: more checking for --gc:arc, no need for valgrind (#14467) * sigmatch: removed dead code --- compiler/dfa.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compiler/dfa.nim') diff --git a/compiler/dfa.nim b/compiler/dfa.nim index 67a9e26d8..a0ec31ac6 100644 --- a/compiler/dfa.nim +++ b/compiler/dfa.nim @@ -809,4 +809,7 @@ proc constructCfg*(s: PSym; body: PNode): ControlFlowGraph = withBlock(s): gen(c, body) genImplicitReturn(c) - shallowCopy(result, c.code) + when defined(gcArc) or defined(gcOrc): + result = c.code # will move + else: + shallowCopy(result, c.code) -- cgit 1.4.1-2-gfad0