8266892: avoid maybe-uninitialized gcc warnings on linux s390x

Reviewed-by: shade, lucy
This commit is contained in:
Matthias Baesken 2021-05-11 10:49:15 +00:00
parent 6575566d83
commit 9e6e2228cb

View File

@ -1387,6 +1387,7 @@ inline unsigned int Assembler::get_instruction(unsigned char *pc, unsigned long
// The length as returned from instr_len() can only be 2, 4, or 6 bytes.
// Having a default clause makes the compiler happy.
ShouldNotReachHere();
*instr = 0L; // This assignment is there to make gcc8 happy.
break;
}
return len;