mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +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::Value* a)
|
||||
{
|
||||
assert(&c, a->type == type);
|
||||
assert(&c,
|
||||
(isGeneralUnaryOp(op) and isGeneralValue(a))or(isFloatUnaryOp(op)
|
||||
and isFloatValue(a)));
|
||||
|
Loading…
Reference in New Issue
Block a user