mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 875476 - Avoid passing operands of the wrong type to EvaluateConstantOperands, r=jandem.
This commit is contained in:
parent
9ce18252d3
commit
e120d43ea1
@ -1283,7 +1283,7 @@ MBinaryArithInstruction::infer(BaselineInspector *inspector,
|
||||
|
||||
// If the operation will always overflow on its constant operands, use a
|
||||
// double specialization so that it can be constant folded later.
|
||||
if (isMul() || isDiv()) {
|
||||
if ((isMul() || isDiv()) && lhs == MIRType_Int32 && rhs == MIRType_Int32) {
|
||||
bool typeChange = false;
|
||||
EvaluateConstantOperands(this, &typeChange);
|
||||
if (typeChange)
|
||||
|
Loading…
Reference in New Issue
Block a user