Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/coreclr/jit/helperexpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ bool Compiler::fgExpandRuntimeLookupsForCall(BasicBlock** pBlock, Statement* stm
return false;
}

assert(call->gtArgs.CountArgs() == 2);
assert(call->gtArgs.CountUserArgs() == 2);
// The call has the following signature:
//
// type = call(genericCtx, signatureCns);
//
const GenTree* signatureNode = call->gtArgs.GetArgByIndex(1)->GetNode();
const GenTree* signatureNode = call->gtArgs.GetUserArgByIndex(1)->GetNode();
Comment thread
tannergooding marked this conversation as resolved.
if (!signatureNode->IsCnsIntOrI())
{
// We expect the signature to be a constant node here (it's marked as DONT_CSE)
Expand Down Expand Up @@ -260,7 +260,7 @@ bool Compiler::fgExpandRuntimeLookupsForCall(BasicBlock** pBlock, Statement* stm
gtUpdateStmtSideEffects(stmt);
}

GenTree* ctxTree = call->gtArgs.GetArgByIndex(0)->GetNode();
GenTree* ctxTree = call->gtArgs.GetUserArgByIndex(0)->GetNode();

// Prepare slotPtr tree (TODO: consider sharing this part with impRuntimeLookup)
GenTree* slotPtrTree = gtCloneExpr(ctxTree);
Expand Down
Loading