Commit 21fe424c authored by Matthias Braun's avatar Matthias Braun
Browse files

fix incorrect usage of current_ir_graph

parent 0d4ae28c
...@@ -756,7 +756,8 @@ static ia32_condition_code_t determine_final_cc(const ir_node *node, ...@@ -756,7 +756,8 @@ static ia32_condition_code_t determine_final_cc(const ir_node *node,
if (is_ia32_Sahf(flags)) { if (is_ia32_Sahf(flags)) {
ir_node *cmp = get_irn_n(flags, n_ia32_Sahf_val); ir_node *cmp = get_irn_n(flags, n_ia32_Sahf_val);
if (!(is_ia32_FucomFnstsw(cmp) || is_ia32_FucomppFnstsw(cmp) || is_ia32_FtstFnstsw(cmp))) { if (!(is_ia32_FucomFnstsw(cmp) || is_ia32_FucomppFnstsw(cmp) || is_ia32_FtstFnstsw(cmp))) {
inc_irg_visited(current_ir_graph); ir_graph *irg = get_irn_irg(node);
inc_irg_visited(irg);
cmp = find_original_value(cmp); cmp = find_original_value(cmp);
assert(cmp != NULL); assert(cmp != NULL);
assert(is_ia32_FucomFnstsw(cmp) || is_ia32_FucomppFnstsw(cmp) || is_ia32_FtstFnstsw(cmp)); assert(is_ia32_FucomFnstsw(cmp) || is_ia32_FucomppFnstsw(cmp) || is_ia32_FtstFnstsw(cmp));
......
Supports Markdown
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