mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
freedreno: silence sometimes-uninitialized warning
Clang does not see that this is unreachable and thus thinks that opc will be used uninitialized later. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14500>
This commit is contained in:
parent
50d4e44fa4
commit
d71c6eebe2
1 changed files with 4 additions and 0 deletions
|
|
@ -248,6 +248,8 @@ emit_instructions(int outfd)
|
||||||
opc = OPC_STORE6;
|
opc = OPC_STORE6;
|
||||||
} else if (ai->tok == T_OP_LOAD) {
|
} else if (ai->tok == T_OP_LOAD) {
|
||||||
opc = OPC_LOAD6;
|
opc = OPC_LOAD6;
|
||||||
|
} else {
|
||||||
|
unreachable("");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ai->tok == T_OP_CWRITE) {
|
if (ai->tok == T_OP_CWRITE) {
|
||||||
|
|
@ -257,6 +259,8 @@ emit_instructions(int outfd)
|
||||||
} else if (ai->tok == T_OP_STORE || ai->tok == T_OP_LOAD) {
|
} else if (ai->tok == T_OP_STORE || ai->tok == T_OP_LOAD) {
|
||||||
fprintf(stderr, "load and store do not exist on a5xx\n");
|
fprintf(stderr, "load and store do not exist on a5xx\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
} else {
|
||||||
|
unreachable("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
instr.control.src1 = ai->src1;
|
instr.control.src1 = ai->src1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue