From c63fbbda06da553330a8bbefe3130dd220961b2a Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Tue, 5 Apr 2022 12:33:08 +0200 Subject: [PATCH] vkd3d-shader/hlsl: Abort on inconsistent types in write_sm4_cast(). Signed-off-by: Giovanni Mascellani Signed-off-by: Zebediah Figura Signed-off-by: Francisco Casas Signed-off-by: Matteo Bruni Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- libs/vkd3d-shader/hlsl_sm4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/vkd3d-shader/hlsl_sm4.c b/libs/vkd3d-shader/hlsl_sm4.c index 9b6fa371..872118c1 100644 --- a/libs/vkd3d-shader/hlsl_sm4.c +++ b/libs/vkd3d-shader/hlsl_sm4.c @@ -1475,7 +1475,7 @@ static void write_sm4_cast(struct hlsl_ctx *ctx, break; default: - break; + assert(0); } break; @@ -1501,7 +1501,7 @@ static void write_sm4_cast(struct hlsl_ctx *ctx, break; default: - break; + assert(0); } break; @@ -1527,7 +1527,7 @@ static void write_sm4_cast(struct hlsl_ctx *ctx, break; default: - break; + assert(0); } break;