add flavor type check to Compiler::store

This commit is contained in:
Joshua Warner
2014-04-30 22:41:47 -06:00
committed by Joshua Warner
parent 2ed52c05a8
commit aef5acce84
2 changed files with 10 additions and 20 deletions

View File

@ -2598,6 +2598,8 @@ class MyCompiler: public Compiler {
ir::Type dstType,
Operand* dst)
{
assert(&c, srcType.flavor() == static_cast<Value*>(src)->type.flavor());
// assert(&c, dstType.flavor() == static_cast<Value*>(dst)->type.flavor());
appendMove(&c,
lir::Move,
srcType.size(),