add type assert in load, fix ensuing problems

This commit is contained in:
Joshua Warner
2014-05-03 19:49:56 -06:00
committed by Joshua Warner
parent 6fdd5d13ca
commit 69966f1d36
2 changed files with 9 additions and 8 deletions

View File

@ -2613,6 +2613,7 @@ class MyCompiler: public Compiler {
{
assert(&c, srcType.flavor() == dstType.flavor());
assert(&c, src->type.flavor() == dstType.flavor());
assert(&c, src->type == srcType);
Value* dst = value(&c, dstType);
appendMove(&c,