Skip to content

Commit

Permalink
Handle better the obscure case where linker is run to do nothing.
Browse files Browse the repository at this point in the history
Fixes #905
  • Loading branch information
marek-safar committed Jan 10, 2020
1 parent a9c3198 commit 8a82325
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/linker/Linker.Steps/MarkStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ void MarkEntireType (TypeDefinition type)

void Process ()
{
//
// This can happen when linker is called on facade with all references skipped
//
if (QueueIsEmpty ())
throw new InvalidOperationException ("No entry methods");
return;

while (ProcessPrimaryQueue () || ProcessLazyAttributes () || ProcessLateMarkedAttributes ())

Expand Down

0 comments on commit 8a82325

Please sign in to comment.