summary refs log tree commit diff stats
path: root/compiler/jsgen.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-02-18 09:56:01 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-18 09:56:01 +0100
commitc8e33cbb75caf21a76d379ce94b42baffbefa73f (patch)
tree2382ee25980be7fa3e89a1a5483cb78857463115 /compiler/jsgen.nim
parent9e754c3b0623433380de171d25bfb862eb2f9ab7 (diff)
parent8b39551fca81e95b51393a2a8e702eebe3ba7c51 (diff)
downloadNim-c8e33cbb75caf21a76d379ce94b42baffbefa73f.tar.gz
fixed merge conflict
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r--compiler/jsgen.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index 8625f2fe1..65706cdfa 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -1149,7 +1149,7 @@ template isIndirect(x: PSym): bool =
   let v = x
   ({sfAddrTaken, sfGlobal} * v.flags != {} and
     #(mapType(v.typ) != etyObject) and
-    {sfImportc, sfVolatile, sfExportc} * v.flags == {} and
+    {sfImportc, sfExportc} * v.flags == {} and
     v.kind notin {skProc, skFunc, skConverter, skMethod, skIterator,
                   skConst, skTemp, skLet})
 
@@ -1235,7 +1235,7 @@ proc genProcForSymIfNeeded(p: PProc, s: PSym) =
 
 proc genCopyForParamIfNeeded(p: PProc, n: PNode) =
   let s = n.sym
-  if p.prc == s.owner or needsNoCopy(p, n): 
+  if p.prc == s.owner or needsNoCopy(p, n):
     return
   var owner = p.up
   while true:
@@ -1597,8 +1597,7 @@ proc createVar(p: PProc, typ: PType, indirect: bool): Rope =
     internalError(p.config, "createVar: " & $t.kind)
     result = nil
 
-template returnType: untyped =
-  ~""
+template returnType: untyped = ~""
 
 proc genVarInit(p: PProc, v: PSym, n: PNode) =
   var