mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- fixed: FxUnaryNotBitwise modified the source operand instead of allocating a new one.
This commit is contained in:
parent
c9f389770d
commit
38fe0b2fe1
1 changed files with 5 additions and 3 deletions
|
@ -2066,10 +2066,12 @@ ExpEmit FxUnaryNotBitwise::Emit(VMFunctionBuilder *build)
|
|||
{
|
||||
assert(Operand->ValueType->GetRegType() == REGT_INT);
|
||||
ExpEmit from = Operand->Emit(build);
|
||||
from.Free(build);
|
||||
ExpEmit to(build, REGT_INT);
|
||||
assert(!from.Konst);
|
||||
// Do it in-place.
|
||||
build->Emit(OP_NOT, from.RegNum, from.RegNum, 0);
|
||||
return from;
|
||||
|
||||
build->Emit(OP_NOT, to.RegNum, from.RegNum, 0);
|
||||
return to;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue