Fix binops change for OpAssign.

This commit is contained in:
Christian Kamm
2008-08-17 13:16:35 +02:00
parent 521a988e43
commit 9caf74c59b

View File

@@ -671,7 +671,7 @@ DValue* MulAssignExp::toElem(IRState* p)
res = DtoComplexMul(loc, type, l, r);
}
else {
res = DtoBinMul(type, l, r);
res = DtoBinMul(l->getType(), l, r);
}
DtoAssign(loc, l, res);
@@ -710,7 +710,7 @@ DValue* DivAssignExp::toElem(IRState* p)
res = DtoComplexDiv(loc, type, l, r);
}
else {
res = DtoBinDiv(type, l, r);
res = DtoBinDiv(l->getType(), l, r);
}
DtoAssign(loc, l, res);
@@ -740,7 +740,7 @@ DValue* ModAssignExp::toElem(IRState* p)
DValue* l = e1->toElem(p);
DValue* r = e2->toElem(p);
DValue* res = DtoBinRem(type, l, r);
DValue* res = DtoBinRem(l->getType(), l, r);
DtoAssign(loc, l, res);
return res;