Add tests for #1211
CL_MoveRefs: Add CHECK (E->JumpTo != NULL) to make failure clearer.
This commit is contained in:
committed by
Oliver Schmidt
parent
4b7cd491e3
commit
d38e5858f0
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user