mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 05:30:59 +00:00
tcg/optimize: move default return out of if statement
This is to appease sanitizer builds which complain that: "error: control reaches end of non-void function" Backports commit 550276ae0a88851edda2cb7fcdd64256dbb8e314 from qemu
This commit is contained in:
parent
4046235e92
commit
bf72733576
|
@ -474,9 +474,8 @@ static TCGArg do_constant_folding_cond(TCGContext *s, TCGOpcode op, TCGArg x,
|
|||
default:
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
|
||||
/* Return 2 if the condition can't be simplified, and the result
|
||||
|
|
Loading…
Reference in a new issue