Make TypeConversion failure an error

This commit is contained in:
Isaac Marovitz 2024-03-19 16:16:00 -04:00
parent f7c9d77968
commit 711fba5475
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 1 additions and 3 deletions

View File

@ -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)