From a0443f0ef1ca9a01d09e1623bd2de458a6c17857 Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Sat, 3 May 2014 20:40:11 -0600 Subject: [PATCH] add type asserts in Compiler::unaryOp --- src/codegen/compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codegen/compiler.cpp b/src/codegen/compiler.cpp index 3b570b8381..e0fde700bb 100644 --- a/src/codegen/compiler.cpp +++ b/src/codegen/compiler.cpp @@ -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)));