mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
remove ir::Type::Invalid, no longer needed for Subroutine
This commit is contained in:
committed by
Joshua Warner
parent
5ad1a14a73
commit
746c0fa0e8
@ -1224,7 +1224,6 @@ unsigned typeFootprint(Context* c, ir::Type type)
|
||||
case ir::Type::Object:
|
||||
case ir::Type::Address:
|
||||
case ir::Type::Half:
|
||||
case ir::Type::Invalid:
|
||||
return 1;
|
||||
case ir::Type::Void:
|
||||
return 0;
|
||||
@ -2465,12 +2464,7 @@ class MyCompiler: public Compiler {
|
||||
|
||||
virtual void return_(ir::Type type, ir::Value* a)
|
||||
{
|
||||
// TODO: once type information is flowed properly, enable this assert.
|
||||
// Some time later, we can remove the parameter.
|
||||
assert(&c,
|
||||
a->type == type
|
||||
// TODO Temporary hack for Subroutine test!!!
|
||||
|| a->type.flavor() == ir::Type::Invalid);
|
||||
assert(&c, a->type == type);
|
||||
appendReturn(&c, type.size(), static_cast<Value*>(a));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user