add type asserts in appendBranch

This commit is contained in:
Joshua Warner 2014-05-03 21:39:26 -06:00 committed by Joshua Warner
parent c259faf24a
commit 0eda1d7d11

View File

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