]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix bogus assertion. (How long has that been there?)
authorJulian Seward <jseward@acm.org>
Fri, 4 Feb 2005 21:14:52 +0000 (21:14 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 4 Feb 2005 21:14:52 +0000 (21:14 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@841

VEX/priv/host-x86/isel.c

index 1f5f2f9c141961d5e742b0082bb0054d2719529d..26cbd187001fed7f7d8c604059f4c16b3cb275ff 100644 (file)
@@ -724,7 +724,7 @@ static HReg iselIntExpr_R_wrk ( ISelEnv* env, IRExpr* e )
    DECLARE_PATTERN(p_32to1_then_1Uto8);
 
    IRType ty = typeOfIRExpr(env->type_env,e);
-   vassert(ty == Ity_I32 || Ity_I16 || Ity_I8);
+   vassert(ty == Ity_I32 || ty == Ity_I16 || ty == Ity_I8);
 
    switch (e->tag) {
 
@@ -1181,7 +1181,7 @@ static HReg iselIntExpr_R_wrk ( ISelEnv* env, IRExpr* e )
    /* --------- CCALL --------- */
    case Iex_CCall: {
       HReg    dst = newVRegI(env);
-      vassert(ty == Ity_I32);
+      vassert(ty == e->Iex.CCall.retty);
 
       /* be very restrictive for now.  Only 32/64-bit ints allowed
          for args, and 32 bits for return type. */