From bdd9ede4fdce9959aff89d85aa76e5d66bedc63c Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Tue, 19 Mar 2024 16:16:00 -0400 Subject: [PATCH] Make TypeConversion failure an error --- src/Ryujinx.Graphics.Shader/CodeGen/Msl/TypeConversion.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Msl/TypeConversion.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Msl/TypeConversion.cs index cb1075d08..55a4eb537 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Msl/TypeConversion.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Msl/TypeConversion.cs @@ -78,9 +78,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl return $"uint({expr})"; } - Logger.Warning?.Print(LogClass.Gpu, $"Invalid reinterpret cast from \"{srcType}\" to \"{dstType}\"."); - // TODO: Make this an error again - return $"INVALID CAST ({expr})"; + throw new ArgumentException($"Invalid reinterpret cast from \"{srcType}\" to \"{dstType}\"."); } private static string ReinterpretBoolToInt(string expr, IAstNode node, AggregateType dstType)