Skip to content

Commit

Permalink
Refactoring to make code more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardDrummer committed Oct 21, 2024
1 parent f27d1eb commit 4cbed7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/VCGeneration/Splits/IsolateAttributeOnJumpsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public static (List<ManualSplit> Isolated, ManualSplit Remainder) GetParts(VCGen
var blocksToInclude = ancestors.Union(descendants).ToHashSet();

var originalReturn = ((GotoFromReturn)gotoCmd.tok).Origin;
if (originalReturn.tok is ImplicitJump) {
var returnWasFromOriginalSource = originalReturn.tok is not Token;
if (returnWasFromOriginalSource) {
continue;
}

Expand Down

0 comments on commit 4cbed7f

Please sign in to comment.