add extra flavor type check to Compiler::store

This commit is contained in:
Joshua Warner 2014-04-30 22:44:51 -06:00 committed by Joshua Warner
parent aef5acce84
commit 1fc6011bf7
2 changed files with 4 additions and 4 deletions

View File

@ -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(),

View File

@ -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;