]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a nonsensical assertion observed by Florian Krohm.
authorJulian Seward <jseward@acm.org>
Tue, 3 May 2011 07:51:49 +0000 (07:51 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 3 May 2011 07:51:49 +0000 (07:51 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@2141

VEX/priv/host_amd64_isel.c

index e0df02c229fdd5c4860633df7427b8fe38ec3f5c..1198cec506c137251722c5c67fdc1d0787c758f8 100644 (file)
@@ -863,7 +863,10 @@ static HReg iselIntExpr_R_wrk ( ISelEnv* env, IRExpr* e )
    DECLARE_PATTERN(p_LDle16_then_16Uto64);
 
    IRType ty = typeOfIRExpr(env->type_env,e);
-   vassert(ty == Ity_I32 || Ity_I16 || Ity_I8);
+   switch (ty) {
+      case Ity_I64: case Ity_I32: case Ity_I16: case Ity_I8: break;
+      default: vassert(0);
+   }
 
    switch (e->tag) {