From ac9db467bf25b4a0fb16ca14e7ba8dfde42a71da Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 31 Aug 2007 15:09:39 +0000 Subject: [PATCH] fixed use of uninitialised variable [r15650] --- ir/be/ia32/ia32_finish.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ir/be/ia32/ia32_finish.c b/ir/be/ia32/ia32_finish.c index 923aa064a..99340cca4 100644 --- a/ir/be/ia32/ia32_finish.c +++ b/ir/be/ia32/ia32_finish.c @@ -349,6 +349,7 @@ static void assure_should_be_same_requirements(ia32_code_gen_t *cg, if(!need_constraint_copy(node)) return; + op_tp = get_ia32_op_type(node); reqs = get_ia32_out_req_all(node); n_res = get_ia32_n_res(node); block = get_nodes_block(node); @@ -406,7 +407,7 @@ static void assure_should_be_same_requirements(ia32_code_gen_t *cg, uses_out_reg_pos = i2; } - /* noone else is using the out reg, we can simply copy it + /* no-one else is using the out reg, we can simply copy it * (the register can't be live since the operation will override it * anyway) */ if(uses_out_reg == NULL) { -- 2.20.1