]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix bug in rev 326 (folding rule for Shl32(x,0) ==> x)
authorJulian Seward <jseward@acm.org>
Wed, 13 Oct 2004 16:16:27 +0000 (16:16 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 13 Oct 2004 16:16:27 +0000 (16:16 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@327

VEX/priv/ir/iropt.c

index b352bf7e74622be35b3bd066d049b4c90c2fdaf3..c9b15bb234c7255a3f60432ea081aca0d5e09681 100644 (file)
@@ -498,7 +498,7 @@ static IRExpr* fold_Expr ( IRExpr* e )
          /* Shl32(x,0) ==> x */
          if (e->Iex.Binop.op == Iop_Shl32
              && e->Iex.Binop.arg2->tag == Iex_Const
-             && e->Iex.Binop.arg2->Iex.Const.con->Ico.U32 == 0) {
+             && e->Iex.Binop.arg2->Iex.Const.con->Ico.U8 == 0) {
             e2 = e->Iex.Binop.arg1;
          } else