summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/main.nim')
-rwxr-xr-xcompiler/main.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index a9b00c4d2..03db3292c 100755
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -78,7 +78,8 @@ proc CompileModule(filename: string, flags: TSymFlags): PSym =
     rd = handleSymbolFile(result, f)
     if result.id < 0: 
       InternalError("handleSymbolFile should have set the module\'s ID")
-  else: 
+      return
+  else:
     result.id = getID()
   processModule(result, f, nil, rd)