mirror of
https://github.com/corda/corda.git
synced 2025-01-07 05:28:51 +00:00
add type asserts in Compiler::unaryOp
This commit is contained in:
parent
b14709c54c
commit
a0443f0ef1
@ -2681,6 +2681,7 @@ class MyCompiler: public Compiler {
|
|||||||
ir::Type type,
|
ir::Type type,
|
||||||
ir::Value* a)
|
ir::Value* a)
|
||||||
{
|
{
|
||||||
|
assert(&c, a->type == type);
|
||||||
assert(&c,
|
assert(&c,
|
||||||
(isGeneralUnaryOp(op) and isGeneralValue(a))or(isFloatUnaryOp(op)
|
(isGeneralUnaryOp(op) and isGeneralValue(a))or(isFloatUnaryOp(op)
|
||||||
and isFloatValue(a)));
|
and isFloatValue(a)));
|
||||||
|
Loading…
Reference in New Issue
Block a user