add type asserts in Compiler::unaryOp

This commit is contained in:
Joshua Warner 2014-05-03 20:40:11 -06:00 committed by Joshua Warner
parent b14709c54c
commit a0443f0ef1

View File

@ -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)));