mirror of
https://github.com/corda/corda.git
synced 2025-02-08 03:50:34 +00:00
add extra flavor type check to Compiler::store
This commit is contained in:
parent
aef5acce84
commit
1fc6011bf7
@ -2599,7 +2599,7 @@ class MyCompiler: public Compiler {
|
|||||||
Operand* dst)
|
Operand* dst)
|
||||||
{
|
{
|
||||||
assert(&c, srcType.flavor() == static_cast<Value*>(src)->type.flavor());
|
assert(&c, srcType.flavor() == static_cast<Value*>(src)->type.flavor());
|
||||||
// assert(&c, dstType.flavor() == static_cast<Value*>(dst)->type.flavor());
|
assert(&c, dstType.flavor() == static_cast<Value*>(dst)->type.flavor());
|
||||||
appendMove(&c,
|
appendMove(&c,
|
||||||
lir::Move,
|
lir::Move,
|
||||||
srcType.size(),
|
srcType.size(),
|
||||||
|
@ -4237,7 +4237,7 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp,
|
|||||||
case iastore:
|
case iastore:
|
||||||
c->store(types.address,
|
c->store(types.address,
|
||||||
value,
|
value,
|
||||||
types.f4,
|
types.i4,
|
||||||
c->memory(array, types.i4, TargetArrayBody, index, 4));
|
c->memory(array, types.i4, TargetArrayBody, index, 4));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -4266,8 +4266,8 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp,
|
|||||||
case lastore:
|
case lastore:
|
||||||
c->store(types.i8,
|
c->store(types.i8,
|
||||||
value,
|
value,
|
||||||
types.f8,
|
types.i8,
|
||||||
c->memory(array, types.i4, TargetArrayBody, index, 8));
|
c->memory(array, types.i8, TargetArrayBody, index, 8));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user