etnaviv: Add unreachable statement to etna_amode to fix compilation warnings
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 28 Jun 2017 21:52:27 +0000 (17:52 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 Jun 2017 07:44:16 +0000 (08:44 +0100)
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/drivers/etnaviv/etnaviv_compiler.c

index af0f76b586499204313048ac0cae1de93269021e..2e8dd8643a5b591400f8629fe969ec5cdcc8d985 100644 (file)
@@ -885,6 +885,8 @@ etna_amode(struct tgsi_ind_register indirect)
    default:
       assert(!"Invalid swizzle");
    }
+
+   unreachable("bad swizzle");
 }
 
 /* convert destination operand */