remove stack manipulation from AvianCallingConvention loop

This commit is contained in:
Joshua Warner
2014-05-01 20:56:47 -06:00
committed by Joshua Warner
parent 9f36a8e0ec
commit d62d083733
3 changed files with 4 additions and 7 deletions

View File

@ -2502,6 +2502,7 @@ class MyCompiler: public Compiler {
Slice<ir::Value*> arguments)
{
Value* result = value(&c, resultType);
Stack* b UNUSED = c.stack;
appendCall(&c,
static_cast<Value*>(address),
ir::AvianCallingConvention,
@ -2510,6 +2511,7 @@ class MyCompiler: public Compiler {
result,
resultType.size(),
arguments);
assert(&c, c.stack == b);
return result;
}