mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
remove redundant Compiler::unaryOp type parameter
This commit is contained in:
committed by
Joshua Warner
parent
a0443f0ef1
commit
008bb6b86e
@ -2678,16 +2678,14 @@ class MyCompiler: public Compiler {
|
||||
}
|
||||
|
||||
virtual ir::Value* unaryOp(lir::BinaryOperation op,
|
||||
ir::Type type,
|
||||
ir::Value* a)
|
||||
{
|
||||
assert(&c, a->type == type);
|
||||
assert(&c,
|
||||
(isGeneralUnaryOp(op) and isGeneralValue(a))or(isFloatUnaryOp(op)
|
||||
and isFloatValue(a)));
|
||||
Value* result = value(&c, a->type);
|
||||
appendTranslate(
|
||||
&c, op, type.size(), static_cast<Value*>(a), type.size(), result);
|
||||
&c, op, a->type.size(), static_cast<Value*>(a), a->type.size(), result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user