qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tcg: `reachable_code_pass()` remove empty else-branch


From: Anton Johansson
Subject: Re: [PATCH] tcg: `reachable_code_pass()` remove empty else-branch
Date: Fri, 3 Mar 2023 16:44:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0


On 3/3/23 16:39, Taylor Simpson wrote:
      dead = false;
      remove = false;

      if (label->refs == 1) {
          TCGOp *op_prev = NULL;
          do {
              op_prev = QTAILQ_PREV(op_prev, link);
You can't use op_prev as the argument here.  It is NULL the first time through 
the loop ☹
Ah right

    TCGop *op_prev = op;

should do it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]