mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
add more aggressive checks to Compiler::load*
This commit is contained in:
committed by
Joshua Warner
parent
27ea503233
commit
53b68a693d
@ -2632,6 +2632,8 @@ class MyCompiler: public Compiler {
|
||||
ir::Type dstType)
|
||||
{
|
||||
assert(&c, dstType.size() >= TargetBytesPerWord);
|
||||
assert(&c, srcType.flavor() == srcSelectType.flavor());
|
||||
assert(&c, srcType.flavor() == dstType.flavor());
|
||||
|
||||
Value* dst = value(&c, static_cast<Value*>(src)->type);
|
||||
appendMove(&c,
|
||||
@ -2650,6 +2652,8 @@ class MyCompiler: public Compiler {
|
||||
ir::Type dstType)
|
||||
{
|
||||
assert(&c, dstType.size() >= TargetBytesPerWord);
|
||||
assert(&c, srcType.flavor() == srcSelectType.flavor());
|
||||
assert(&c, srcType.flavor() == dstType.flavor());
|
||||
|
||||
Value* dst = value(&c, static_cast<Value*>(src)->type);
|
||||
appendMove(&c,
|
||||
|
Reference in New Issue
Block a user