Skip to content
Closed
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
Formatting
  • Loading branch information
EgorBo committed Dec 25, 2020
commit d1e5931de50264c5330702887aea0c03bd9ac861
5 changes: 1 addition & 4 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -3888,10 +3888,7 @@ class Compiler
void impImportLeave(BasicBlock* block);
void impResetLeaveBlock(BasicBlock* block, unsigned jmpAddr);
GenTree* impTypeIsAssignable(GenTree* typeTo, GenTree* typeFrom);
GenTree* impUnrollSpanComparisonWithStrCon(GenTree* span,
GenTreeStrCon* cnsStr,
bool ignoreCase,
bool startsWith);
GenTree* impUnrollSpanComparisonWithStrCon(GenTree* span, GenTreeStrCon* cnsStr, bool ignoreCase, bool startsWith);

GenTree* impIntrinsic(GenTree* newobjThis,
CORINFO_CLASS_HANDLE clsHnd,
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4730,7 +4730,7 @@ GenTree* Compiler::impUnrollSpanComparisonWithStrCon(GenTree* span,
impCloneExpr(spanRef, &spanRefClone, NO_CLASS_HANDLE, (unsigned)CHECK_SPILL_ALL, nullptr DEBUGARG("spanRef"));

GenTree* spanData = gtNewFieldRef(TYP_BYREF, pointerHnd, spanRefClone, pointerOffset);
GenTree * spanDataIndir = gtNewIndir(cmpType, spanData);
GenTree* spanDataIndir = gtNewIndir(cmpType, spanData);
GenTreeIntCon* constStrAsIntCon = gtNewIconNode(strAsUlong, cmpType);

if (ignoreCase)
Expand Down