Commit db35c03e authored by Wim Taymans's avatar Wim Taymans

compiler: update max_used_temp_reg before use

It should not be smaller than min_temp_reg or we will fail to search for
a free register.
parent 7186fbaa
......@@ -1177,6 +1177,9 @@ orc_compiler_get_constant_reg (OrcCompiler *compiler)
compiler->alloc_regs[compiler->constants[j].alloc_reg] = 1;
}
}
if (compiler->max_used_temp_reg < compiler->min_temp_reg)
compiler->max_used_temp_reg = compiler->min_temp_reg;
for(j=ORC_VEC_REG_BASE;j<=compiler->max_used_temp_reg;j++) {
compiler->alloc_regs[j] = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment