Commit 7f6f0ae5 authored by Stefan Weil's avatar Stefan Weil Committed by Blue Swirl
Browse files

tcg: Add some assertions

parent c0ad3001
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -794,7 +794,9 @@ static char *tcg_get_arg_str_idx(TCGContext *s, char *buf, int buf_size,
{
    TCGTemp *ts;

    assert(idx >= 0 && idx < s->nb_temps);
    ts = &s->temps[idx];
    assert(ts);
    if (idx < s->nb_globals) {
        pstrcpy(buf, buf_size, ts->name);
    } else {