remove redundant f2f aType parameter

This commit is contained in:
Joshua Warner
2014-05-03 19:56:21 -06:00
committed by Joshua Warner
parent 963b371e04
commit c843a97e23
3 changed files with 6 additions and 7 deletions

View File

@ -2692,16 +2692,15 @@ class MyCompiler: public Compiler {
return result;
}
virtual ir::Value* f2f(ir::Type aType, ir::Type resType, ir::Value* a)
virtual ir::Value* f2f(ir::Type resType, ir::Value* a)
{
assert(&c, aType == a->type);
assert(&c, isFloatValue(a));
assert(&c, resType.flavor() == ir::Type::Float);
assert(&c, aType.flavor() == ir::Type::Float);
assert(&c, a->type.flavor() == ir::Type::Float);
Value* result = value(&c, resType);
appendTranslate(&c,
lir::Float2Float,
aType.size(),
a->type.size(),
static_cast<Value*>(a),
resType.size(),
result);