mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
fix some return type & intrinsic typing
This commit is contained in:
@ -2667,16 +2667,17 @@ class MyCompiler: public Compiler {
|
||||
ir::Value* src,
|
||||
ir::Type dstType)
|
||||
{
|
||||
assert(&c, dstType.size() >= TargetBytesPerWord);
|
||||
assert(&c, srcType.flavor() == dstType.flavor());
|
||||
assert(&c, src->type.flavor() == dstType.flavor());
|
||||
|
||||
Value* dst = value(&c, src->type);
|
||||
Value* dst = value(&c, dstType);
|
||||
appendMove(&c,
|
||||
signExtend == ir::SignExtend ? lir::Move : lir::MoveZ,
|
||||
srcType.size(),
|
||||
srcType.size(),
|
||||
static_cast<Value*>(src),
|
||||
dstType.size(),
|
||||
dstType.size() < TargetBytesPerWord ? TargetBytesPerWord
|
||||
: dstType.size(),
|
||||
dst);
|
||||
return dst;
|
||||
}
|
||||
|
Reference in New Issue
Block a user