add type assert in Compiler::store, fix ensuing problems

This commit is contained in:
Joshua Warner
2014-05-03 20:10:55 -06:00
committed by Joshua Warner
parent e3d01746e8
commit f6bc51647e
2 changed files with 6 additions and 5 deletions

View File

@ -2595,6 +2595,7 @@ class MyCompiler: public Compiler {
virtual void store(ir::Type srcType, ir::Value* src, ir::Value* dst)
{
assert(&c, srcType == src->type);
assert(&c, srcType.flavor() == src->type.flavor());
assert(&c, srcType.flavor() == dst->type.flavor());
assert(&c,