Skip to content

Commit 94b6d05

Browse files
authored
JIT: Fix unique successors in BBswtDesc in runtime async (#117759)
1 parent abcf594 commit 94b6d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/jit/async.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,8 +2305,8 @@ void AsyncTransformation::CreateResumptionSwitch()
23052305
}
23062306
}
23072307

2308-
BBswtDesc* const swtDesc =
2309-
new (m_comp, CMK_BasicBlock) BBswtDesc(cases, (unsigned)numCases, succs, numUniqueSuccs, true);
2308+
BBswtDesc* const swtDesc = new (m_comp, CMK_BasicBlock)
2309+
BBswtDesc(succs, numUniqueSuccs, cases, (unsigned)numCases, /* hasDefault */ true);
23102310
switchBB->SetSwitch(swtDesc);
23112311
}
23122312

0 commit comments

Comments
 (0)