Browse Source

fcl-passrc: useanalzyer: fixed marking empty program

git-svn-id: trunk@38506 -
Mattias Gaertner 7 years ago
parent
commit
74e52e0369
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-passrc/src/pasuseanalyzer.pas

+ 1 - 0
packages/fcl-passrc/src/pasuseanalyzer.pas

@@ -2113,6 +2113,7 @@ begin
     RaiseInconsistency(20170315153252,'');
     RaiseInconsistency(20170315153252,'');
   ScopeModule:=nil;
   ScopeModule:=nil;
   UseModule(aStartModule,paumAllExports);
   UseModule(aStartModule,paumAllExports);
+  MarkElementAsUsed(aStartModule); // always mark the start
   {$IFDEF VerbosePasAnalyzer}
   {$IFDEF VerbosePasAnalyzer}
   writeln('TPasAnalyzer.AnalyzeWholeProgram END ',GetElModName(aStartModule));
   writeln('TPasAnalyzer.AnalyzeWholeProgram END ',GetElModName(aStartModule));
   {$ENDIF}
   {$ENDIF}