OpcodeDispatcher: Fix inconsistent types in ternary conditional

This commit is contained in:
Tony Wasserka committed 2026-03-16 19:15:05 +01:00
1 parent 91c55facb2
commit 67caab026a
1 file changed
+4 -1
@@ -2643,7 +2643,10 @@ void OpDispatchBuilder::IMULOp(OpcodeArgs) {
}
// 64-bit special cased to save a move
Ref Result = Size < OpSize::i64Bit ? _Mul(OpSize::i64Bit, Src1, Src2) : nullptr;
Ref Result {};
if (Size < OpSize::i64Bit) {
Result = _Mul(OpSize::i64Bit, Src1, Src2);
}
Ref ResultHigh {};
if (Size == OpSize::i8Bit) {
// Result is stored in AX