Fix cntlz.

This commit is contained in:
Ben Vanik
2014-05-27 15:15:52 -07:00
parent 2856d38024
commit b0034f3b4d
3 changed files with 8 additions and 8 deletions

View File

@@ -371,7 +371,7 @@ int ConstantPropagationPass::Run(HIRBuilder* builder) {
case OPCODE_CNTLZ:
if (i->src1.value->IsConstant()) {
v->set_zero(v->type);
v->CountLeadingZeros(i->src1.value->constant);
v->CountLeadingZeros(i->src1.value);
i->Remove();
}
break;