Skip to content

Conversation

AndyAyersMS
Copy link
Member

We can see this from getTailCallHelpers for indirect calls.
Fixes a few recording failures when running coreclr tests under spmi.

We can see this from `getTailCallHelpers` for indirect calls.
Fixes a few recording failures when running coreclr tests under spmi.
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Feb 12, 2021
@AndyAyersMS
Copy link
Member Author

@BruceForstall PTAL
cc @dotnet/jit-contrib

pResolvedToken->cbTypeSpec = (ULONG)tokenOut.cbTypeSpec;
pResolvedToken->pMethodSpec = (PCCOR_SIGNATURE)buffers->GetBuffer(tokenOut.pMethodSpec_Index);
pResolvedToken->cbMethodSpec = (ULONG)tokenOut.cbMethodSpec;
if (pResolvedToken != nullptr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only called for resolveToken and tryResolveToken. Can pResolvedToken ever be null for those?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not? I can try to minimize where we do this, if you think it's important.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's not that important.

@AndyAyersMS AndyAyersMS merged commit 21a03c3 into dotnet:master Feb 12, 2021
@AndyAyersMS AndyAyersMS deleted the SpmiTolerateNullResolvedToken branch February 12, 2021 20:54
@AndyAyersMS AndyAyersMS mentioned this pull request Feb 12, 2021
54 tasks
@ghost ghost locked as resolved and limited conversation to collaborators Mar 14, 2021
@AndyAyersMS AndyAyersMS restored the SpmiTolerateNullResolvedToken branch October 11, 2024 21:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants