mirror of
https://github.com/corda/corda.git
synced 2025-06-18 07:08:15 +00:00
use ir::Type in Compiler::pop
This commit is contained in:
committed by
Joshua Warner
parent
13342d28be
commit
4bfb359cdd
@ -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() {
|
||||
|
Reference in New Issue
Block a user