mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
see #428 :: make sure semanticRun was not not reset; thanks SiegeLord
This commit is contained in:
@@ -673,7 +673,9 @@ void FuncDeclaration::semantic(Scope *sc)
|
||||
|
||||
Ldone:
|
||||
Module::dprogress++;
|
||||
semanticRun = PASSsemanticdone;
|
||||
//LDC relies on semanticRun variable not being reset here
|
||||
if(semanticRun < PASSsemanticdone)
|
||||
semanticRun = PASSsemanticdone;
|
||||
|
||||
/* Save scope for possible later use (if we need the
|
||||
* function internals)
|
||||
|
||||
Reference in New Issue
Block a user