提交 b57c529f 编写于 作者: C Carol Eidt 提交者: GitHub

Merge pull request dotnet/coreclr#13506 from mikedn/switch-un

Fix switch unsigned cast

Commit migrated from https://github.com/dotnet/coreclr/commit/e9e3a69fe00d5e75ed09971b346f3529beba36f6
......@@ -767,6 +767,7 @@ GenTree* Lowering::LowerSwitch(GenTree* node)
{
// Note that the switch value is unsigned so the cast should be unsigned as well.
switchValue = comp->gtNewCastNode(TYP_I_IMPL, switchValue, TYP_U_IMPL);
switchValue->gtFlags |= GTF_UNSIGNED;
}
#endif
GenTreePtr gtTableSwitch =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册