mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
remove redundant load srcType parameter
This commit is contained in:
committed by
Joshua Warner
parent
69966f1d36
commit
963b371e04
@ -2607,19 +2607,16 @@ class MyCompiler: public Compiler {
|
||||
}
|
||||
|
||||
virtual ir::Value* load(ir::SignExtendMode signExtend,
|
||||
ir::Type srcType,
|
||||
ir::Value* src,
|
||||
ir::Type dstType)
|
||||
{
|
||||
assert(&c, srcType.flavor() == dstType.flavor());
|
||||
assert(&c, src->type.flavor() == dstType.flavor());
|
||||
assert(&c, src->type == srcType);
|
||||
|
||||
Value* dst = value(&c, dstType);
|
||||
appendMove(&c,
|
||||
signExtend == ir::SignExtend ? lir::Move : lir::MoveZ,
|
||||
srcType.size(),
|
||||
srcType.size(),
|
||||
src->type.size(),
|
||||
src->type.size(),
|
||||
static_cast<Value*>(src),
|
||||
dstType.size() < TargetBytesPerWord ? TargetBytesPerWord
|
||||
: dstType.size(),
|
||||
|
Reference in New Issue
Block a user