builtin_functions.c, around 5629:
} else if (pos && stack[pos]->refs == 1 && stack[pos-1] == stack[pos]->prev) { ... } else { ... if (pos) (dml->prev = stack[pos-1])->refs++; else dml->prev = NULL; ...
pos was just checked against on the level above. That is just extra dead code.