[release/6.0] Remove benign assert (#59044)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 14 Sep 2021 23:32:23 +0000 (16:32 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Sep 2021 23:32:23 +0000 (16:32 -0700)
commitb3a9b0b740cce9322b03200db0b4ab736d7cd12d
tree579439700cd97ba54e9afeae374d16d4c212645b
parentbf2a7d0f0bcb0438f342b304988115f3c88a2178
[release/6.0] Remove benign assert (#59044)

* Remove benign assert

It is perfectly possible for us to replace a promoted struct by its only
field where that field is marked do-not-enregister. Since this path does
handle the proper retyping when normalization is required this assertion
is benign.

Fix #58972

* Fix test

Co-authored-by: Jakob Botsch Nielsen <jakob.botsch.nielsen@gmail.com>
src/coreclr/jit/lower.cpp
src/tests/JIT/Regression/JitBlue/Runtime_58972/Runtime_58972.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_58972/Runtime_58972.csproj [new file with mode: 0644]