summaryrefslogtreecommitdiff
path: root/opcodes/ip2k-ibld.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/ip2k-ibld.c')
-rw-r--r--opcodes/ip2k-ibld.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/ip2k-ibld.c b/opcodes/ip2k-ibld.c
index a7dd80ce005..9258f7d3ad8 100644
--- a/opcodes/ip2k-ibld.c
+++ b/opcodes/ip2k-ibld.c
@@ -480,7 +480,10 @@ extract_normal (CGEN_CPU_DESC cd,
abort ();
if (fill_cache (cd, ex_info, word_offset / 8, word_length / 8, pc) == 0)
- return 0;
+ {
+ *valuep = 0;
+ return 0;
+ }
value = extract_1 (cd, ex_info, start, length, word_length, bufp, pc);
}