Skip to content

Commit

Permalink
dmd.dtemplate: Don't end search after making inst non-speculative in …
Browse files Browse the repository at this point in the history
…needsCodegen
  • Loading branch information
ibuclaw committed Jan 9, 2023
1 parent 205e9ae commit e6d392f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/dmd/dtemplate.d
Original file line number Diff line number Diff line change
Expand Up @@ -6304,7 +6304,7 @@ extern (C++) class TemplateInstance : ScopeDsymbol
else if (!minst && tnext.minst)
{
minst = tnext.minst; // cache result from non-speculative sibling
return false;
// continue searching
}
else if (needsCodegen != ThreeState.none)
break;
Expand Down Expand Up @@ -6374,7 +6374,7 @@ extern (C++) class TemplateInstance : ScopeDsymbol
else if (!minst)
{
minst = tnext.minst; // cache result from non-speculative sibling
return true;
// continue searching
}
else if (needsCodegen != ThreeState.none)
break;
Expand Down

0 comments on commit e6d392f

Please sign in to comment.