summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-02-05 20:14:34 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-02-06 15:39:56 +0100
commit81d144e3b401d260d7d62f90fb762ecdec83f73d (patch)
treebd358338a5057a51a608974a86f760f7c59ae09a /compiler
parent4686f485a685d0c776a5be20fcaf7ddb997802f8 (diff)
downloadNim-81d144e3b401d260d7d62f90fb762ecdec83f73d.tar.gz
no LL for PHP
Diffstat (limited to 'compiler')
-rw-r--r--compiler/lambdalifting.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/lambdalifting.nim b/compiler/lambdalifting.nim
index 1c0c2494a..53fca4863 100644
--- a/compiler/lambdalifting.nim
+++ b/compiler/lambdalifting.nim
@@ -772,7 +772,8 @@ proc liftLambdas*(fn: PSym, body: PNode; tooEarly: var bool): PNode =
   # However we can do lifting for the stuff which is *only* compiletime.
   let isCompileTime = sfCompileTime in fn.flags or fn.kind == skMacro
 
-  if body.kind == nkEmpty or (gCmd == cmdCompileToJS and not isCompileTime) or
+  if body.kind == nkEmpty or (
+      gCmd in {cmdCompileToPHP, cmdCompileToJS} and not isCompileTime) or
       fn.skipGenericOwner.kind != skModule:
     # ignore forward declaration:
     result = body