mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
remove redundant Compiler::truncate srcType parameter
This commit is contained in:
committed by
Joshua Warner
parent
3029bb2d7e
commit
e3d01746e8
@ -2560,17 +2560,16 @@ class MyCompiler: public Compiler {
|
||||
static_cast<Value*>(index), handler);
|
||||
}
|
||||
|
||||
virtual ir::Value* truncate(ir::Type type, ir::Type srcType, ir::Value* src)
|
||||
virtual ir::Value* truncate(ir::Type type, ir::Value* src)
|
||||
{
|
||||
assert(&c, srcType == src->type);
|
||||
assert(&c, src->type.flavor() == type.flavor());
|
||||
assert(&c, type.flavor() != ir::Type::Float);
|
||||
assert(&c, type.size() < src->type.size());
|
||||
Value* dst = value(&c, type);
|
||||
appendMove(&c,
|
||||
lir::Move,
|
||||
srcType.size(),
|
||||
srcType.size(),
|
||||
src->type.size(),
|
||||
src->type.size(),
|
||||
static_cast<Value*>(src),
|
||||
type.size(),
|
||||
dst);
|
||||
|
Reference in New Issue
Block a user