see #428 :: make sure semanticRun was not not reset; thanks SiegeLord

This commit is contained in:
Moritz Warning
2010-09-27 00:04:07 +02:00
parent 09b9644292
commit 3db9240c46

View File

@@ -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)