diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-09-17 22:00:30 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-10-01 06:11:23 +0000 |
commit | 7f6f0ae5b95adfa76e10eabe2c34424a955fd10c (patch) | |
tree | aa15816439e2eeb63f4344850f75bd669737cfe4 /tcg/tcg.c | |
parent | c0ad3001bf12292b137b05e1c4643f31c6b0a727 (diff) | |
download | qemu-7f6f0ae5b95adfa76e10eabe2c34424a955fd10c.tar.gz qemu-7f6f0ae5b95adfa76e10eabe2c34424a955fd10c.tar.bz2 qemu-7f6f0ae5b95adfa76e10eabe2c34424a955fd10c.zip |
tcg: Add some assertions
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |