Skip to content

Commit c6ec65c

Browse files
jakobbotschSimaTian
authored andcommitted
JIT: Remove overzealous async assert (#115883)
The store can come from a `STORE_LCL_FLD`, so in reality there is no relation between the type of the resultLcl and the call type. The code below handles `STORE_LCL_FLD` correctly, so just remove the assert.
1 parent fb67c1f commit c6ec65c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/coreclr/jit/async.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,6 @@ void AsyncTransformation::CopyReturnValueOnResumption(GenTreeCall*
15381538

15391539
assert(callDefInfo.DefinitionNode != nullptr);
15401540
LclVarDsc* resultLcl = m_comp->lvaGetDesc(callDefInfo.DefinitionNode);
1541-
assert(varTypeIsStruct(resultLcl) == varTypeIsStruct(call->gtReturnType));
15421541

15431542
// TODO-TP: We can use liveness to avoid generating a lot of this IR.
15441543
if (call->gtReturnType == TYP_STRUCT)

0 commit comments

Comments
 (0)