Skip to content

Commit

Permalink
Fold nullchecks in Interlocked.* (dotnet#101956)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored and michaelgsharp committed May 8, 2024
1 parent 7a527aa commit a9cc14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/earlyprop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ GenTree* Compiler::optFindNullCheckToFold(GenTree* tree, LocalNumberToNullCheckT
{
assert(tree->OperIsIndirOrArrMetaData());

GenTree* addr = tree->GetIndirOrArrMetaDataAddr();
GenTree* addr = tree->GetIndirOrArrMetaDataAddr()->gtEffectiveVal();

ssize_t offsetValue = 0;

Expand Down

0 comments on commit a9cc14d

Please sign in to comment.