]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a condition that was always true. Found by cppcheck.
authorFlorian Krohm <florian@eich-krohm.de>
Fri, 5 Jun 2015 19:35:32 +0000 (19:35 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Fri, 5 Jun 2015 19:35:32 +0000 (19:35 +0000)
See BZ #348565.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3150

VEX/priv/guest_arm_toIR.c

index 7cedb7de2d0d952d731f0ababc1ac9fbf922c026..15329fed1b5dfb65497ed80829767d5d56d1be30 100644 (file)
@@ -21458,7 +21458,7 @@ DisResult disInstr_THUMB_WRK (
       UInt rT2 = INSN1(11,8);
       UInt rD  = INSN1(3,0);
       if (!isBadRegT(rD) && !isBadRegT(rT) && !isBadRegT(rT2)
-          && rN != 15 && rD != rN && rD != rT && rD != rT) {
+          && rN != 15 && rD != rN && rD != rT && rD != rT2) {
          IRTemp resSC1, resSC32, data;
          // go uncond
          mk_skip_over_T32_if_cond_is_false( condT );