From eaca5be9d6e205e8aa7055306122a6c053ef35a6 Mon Sep 17 00:00:00 2001 From: cooldome Date: Thu, 18 Oct 2018 19:21:25 +0100 Subject: Change the order of compilation passes, transformation is made lazy at code gen (#8489) * Ast no transformation * Add getImplNoTransform to the macros module * progress on delaying transf * Fix methods tranformation * Fix lazy lambdalifting * fix create thread wrapper * transform for lambda lifting * improve getImplTransformed * Fix destructor tests * try to fix nimprof for linux --- compiler/guards.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/guards.nim') diff --git a/compiler/guards.nim b/compiler/guards.nim index 99bb51fce..a01c023e4 100644 --- a/compiler/guards.nim +++ b/compiler/guards.nim @@ -70,7 +70,7 @@ proc isLetLocation(m: PNode, isApprox: bool): bool = n = n.sons[0] inc derefs of nkBracketExpr: - if isConstExpr(n.sons[1]) or isLet(n.sons[1]): + if isConstExpr(n.sons[1]) or isLet(n.sons[1]) or isConstExpr(n.sons[1].skipConv): n = n.sons[0] else: return of nkHiddenStdConv, nkHiddenSubConv, nkConv: -- cgit 1.4.1-2-gfad0 lass='tabs'> summary refs log tree commit diff stats
path: root/doc/readme.txt
blob: 1157752b93c3a7edf409b2b1d161552cb0a226c8 (plain) (blame)
1
2
3
4
5
6
7