diff options
Diffstat (limited to 'compiler/main.nim')
-rwxr-xr-x | compiler/main.nim | 3 |
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) |