add type/footprint assert in Compiler::storeLocal

This commit is contained in:
Joshua Warner 2014-05-03 21:52:30 -06:00 committed by Joshua Warner
parent e7837c243e
commit cc4525c31c

View File

@ -2536,6 +2536,7 @@ class MyCompiler: public Compiler {
virtual void storeLocal(unsigned footprint, ir::Value* src, unsigned index)
{
assert(&c, typeFootprint(src->type) == footprint);
compiler::storeLocal(&c, footprint, static_cast<Value*>(src), index, true);
}