File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -21896,7 +21896,7 @@ unsigned Compiler::fgCheckInlineDepthAndRecursion(InlineInfo* inlineInfo)
21896
21896
21897
21897
for (; inlineContext != nullptr; inlineContext = inlineContext->GetParent())
21898
21898
{
21899
-
21899
+ assert(inlineContext->GetCode() != nullptr);
21900
21900
depth++;
21901
21901
21902
21902
if (inlineContext->GetCode() == candidateCode)
Original file line number Diff line number Diff line change @@ -1171,6 +1171,7 @@ InlineContext* InlineStrategy::NewRoot()
1171
1171
InlineContext* rootContext = new (m_Compiler, CMK_Inlining) InlineContext (this );
1172
1172
1173
1173
rootContext->m_ILSize = m_Compiler->info .compILCodeSize ;
1174
+ rootContext->m_Code = m_Compiler->info .compCode ;
1174
1175
1175
1176
#if defined(DEBUG) || defined(INLINE_DATA)
1176
1177
Original file line number Diff line number Diff line change @@ -662,7 +662,7 @@ class InlineContext
662
662
}
663
663
664
664
// Get the code pointer for this context.
665
- BYTE* GetCode () const
665
+ const BYTE* GetCode () const
666
666
{
667
667
return m_Code;
668
668
}
@@ -731,7 +731,7 @@ class InlineContext
731
731
InlineContext* m_Parent; // logical caller (parent)
732
732
InlineContext* m_Child; // first child
733
733
InlineContext* m_Sibling; // next child of the parent
734
- BYTE* m_Code; // address of IL buffer for the method
734
+ const BYTE* m_Code; // address of IL buffer for the method
735
735
unsigned m_ILSize; // size of IL buffer for the method
736
736
unsigned m_ImportedILSize; // estimated size of imported IL
737
737
IL_OFFSETX m_Offset; // call site location within parent
You can’t perform that action at this time.
0 commit comments