mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +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)
|
||||
{
|
||||
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,
|
||||
lir::Move,
|
||||
srcType.size(),
|
||||
|
@ -4237,7 +4237,7 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp,
|
||||
case iastore:
|
||||
c->store(types.address,
|
||||
value,
|
||||
types.f4,
|
||||
types.i4,
|
||||
c->memory(array, types.i4, TargetArrayBody, index, 4));
|
||||
break;
|
||||
|
||||
@ -4266,8 +4266,8 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp,
|
||||
case lastore:
|
||||
c->store(types.i8,
|
||||
value,
|
||||
types.f8,
|
||||
c->memory(array, types.i4, TargetArrayBody, index, 8));
|
||||
types.i8,
|
||||
c->memory(array, types.i8, TargetArrayBody, index, 8));
|
||||
break;
|
||||
}
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user