Set vtable offset as contained
[platform/upstream/coreclr.git] / src / jit / lower.cpp
index 809f48f..49b3f8c 100644 (file)
@@ -4011,6 +4011,7 @@ GenTree* Lowering::LowerVirtualVtableCall(GenTreeCall* call)
             BlockRange().InsertBefore(call, std::move(range));
 
             LIR::Range range2 = LIR::SeqTree(comp, lclvNodeStore2);
+            ContainCheckIndir(tmpTree->AsIndir());
             JITDUMP("result of obtaining pointer to virtual table 2nd level indirection:\n");
             DISPRANGE(range2);
             BlockRange().InsertAfter(lclvNodeStore, std::move(range2));