remove redundant Compiler::initLocal footprint parameter

This commit is contained in:
Joshua Warner
2014-05-03 22:16:22 -06:00
committed by Joshua Warner
parent b6a3ed763c
commit 9273d5ca39
3 changed files with 11 additions and 11 deletions

View File

@ -2490,9 +2490,10 @@ class MyCompiler: public Compiler {
v->home = frameIndex(&c, index);
}
virtual void initLocal(unsigned footprint, unsigned index, ir::Type type)
virtual void initLocal(unsigned index, ir::Type type)
{
assert(&c, footprint == typeFootprint(&c, type));
unsigned footprint = typeFootprint(&c, type);
assert(&c, index + footprint <= c.localFootprint);
Value* v = value(&c, type);