]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
target/hexagon/idef-parser: Remove self-assignment
authorAnton Johansson <anjo@rev.ng>
Thu, 13 Jul 2023 12:08:53 +0000 (14:08 +0200)
committerBrian Cain <bcain@quicinc.com>
Thu, 8 Aug 2024 03:37:19 +0000 (20:37 -0700)
The self assignment is clearly useless, and @1.last_column does not have
to be set for an expression with only a single token, so remove it.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Brian Cain <bcain@quicinc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230713120853.27023-1-anjo@rev.ng>
Signed-off-by: Brian Cain <bcain@quicinc.com>
target/hexagon/idef-parser/idef-parser.y

index 9ffb9f9699e70c34b3ff5058018de2e342af55e1..c6f17c6afa78d83700842d80f74b13252d2400a4 100644 (file)
@@ -800,7 +800,6 @@ rvalue : FAIL
 
 lvalue : FAIL
          {
-             @1.last_column = @1.last_column;
              yyassert(c, &@1, false, "Encountered a FAIL token as lvalue.\n");
          }
        | REG