Add tests for #1211

CL_MoveRefs: Add CHECK (E->JumpTo != NULL) to make failure clearer.
This commit is contained in:
Jesse Rosenstock
2020-08-24 10:01:58 +02:00
committed by Oliver Schmidt
parent 4b7cd491e3
commit d38e5858f0
3 changed files with 104 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ void CL_MoveRefs (CodeLabel* OldLabel, CodeLabel* NewLabel)
CodeEntry* E = CL_GetRef (OldLabel, Count);
/* Change the reference to the new label */
CHECK (E->JumpTo != NULL);
CHECK (E->JumpTo == OldLabel);
CL_AddRef (NewLabel, E);