From 0eda1d7d1129d729e02714f967765e1979f222cc Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Sat, 3 May 2014 21:39:26 -0600 Subject: [PATCH] add type asserts in appendBranch --- src/codegen/compiler/event.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/codegen/compiler/event.cpp b/src/codegen/compiler/event.cpp index 0511e1542d..62248d5adb 100644 --- a/src/codegen/compiler/event.cpp +++ b/src/codegen/compiler/event.cpp @@ -1517,6 +1517,8 @@ void appendBranch(Context* c, lir::TernaryOperation type, unsigned size, Value* firstValue, Value* secondValue, Value* addressValue) { + assert(c, size == firstValue->type.size()); + assert(c, size == secondValue->type.size()); bool thunk; OperandMask firstMask; OperandMask secondMask;