Switch nodes may have dw inputs, without outputs
authorMatthias Braun <matze@braunis.de>
Wed, 24 Oct 2012 16:43:03 +0000 (18:43 +0200)
committerMatthias Braun <matze@braunis.de>
Thu, 25 Oct 2012 17:12:23 +0000 (19:12 +0200)
switch with double-word input leads to panic, but still better than
obscure verifier errors.

ir/lower/lower_dw.c

index b12c1bd..16637ab 100644 (file)
@@ -2756,6 +2756,7 @@ static bool always_lower(unsigned code)
        case iro_Call:
        case iro_Return:
        case iro_Cond:
+       case iro_Switch:
        case iro_Conv:
        case iro_Sel:
                return true;