Skip to content

Commit

Permalink
Check gtClassProfileCandidateInfo before instrumentation (#66388)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored Mar 10, 2022
1 parent 7b71e1b commit cdb1d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/fgprofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ class ClassProbeVisitor final : public GenTreeVisitor<ClassProbeVisitor<TFunctor
Compiler::fgWalkResult PreOrderVisit(GenTree** use, GenTree* user)
{
GenTree* const node = *use;
if (node->IsCall())
if (node->IsCall() && (node->AsCall()->gtClassProfileCandidateInfo != nullptr))
{
GenTreeCall* const call = node->AsCall();
if (call->IsVirtual() && (call->gtCallType != CT_INDIRECT))
Expand Down

0 comments on commit cdb1d26

Please sign in to comment.