use ir::Type in Compiler::pop

This commit is contained in:
Joshua Warner
2014-04-30 20:28:33 -06:00
committed by Joshua Warner
parent 13342d28be
commit 4bfb359cdd
3 changed files with 34 additions and 28 deletions

View File

@ -2363,8 +2363,13 @@ class MyCompiler: public Compiler {
}
}
virtual Operand* pop(unsigned footprint) {
return compiler::pop(&c, footprint);
virtual Operand* pop(ir::Type type)
{
Operand* value = compiler::pop(&c, typeFootprint(&c, type));
// TODO: once type information is flowed properly, enable this assert.
// Some time later, we can remove the parameter.
// assert(&c, static_cast<Value*>(value)->type == type);
return value;
}
virtual void pushed() {