Skip to content

Commit 734fa7b

Browse files
JIT: Add missing containment check for indirect calls (#119812)
Co-authored-by: Jakob Botsch Nielsen <[email protected]>
1 parent b5331b4 commit 734fa7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/lowerxarch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7696,7 +7696,7 @@ void Lowering::ContainCheckCallOperands(GenTreeCall* call)
76967696
}
76977697
else
76987698
#endif // TARGET_X86
7699-
if (ctrlExpr->isIndir())
7699+
if (ctrlExpr->isIndir() && IsSafeToContainMem(call, ctrlExpr))
77007700
{
77017701
// We may have cases where we have set a register target on the ctrlExpr, but if it
77027702
// contained we must clear it.

0 commit comments

Comments
 (0)