summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2019-05-31 18:46:12 +0200
committerJan Kotas <jkotas@microsoft.com>2019-05-31 09:46:12 -0700
commit795f2fd2a67047519b477cd1776626368c88e73c (patch)
treedc77579cf53afe0f65d6540a92687984a7df7c55 /src
parent0bbac00d8344195da3c9ee60dad31d0036b7dec0 (diff)
downloadcoreclr-795f2fd2a67047519b477cd1776626368c88e73c.tar.gz
coreclr-795f2fd2a67047519b477cd1776626368c88e73c.tar.bz2
coreclr-795f2fd2a67047519b477cd1776626368c88e73c.zip
Fix overlooked moduleIndex initial value (#24881)
When adding the signature copying some time ago, I have overlooked one place where the moduleIndex was set to -1 instead of MODULE_INDEX_NONE. I was using the -1 during the development and replaced it by creating MODULE_INDEX_NONE during final cleanup at all but one places. This caused issues during crossgen even without large version bubble enabled. Methods requiring generic constraint were not crossgen-ed due to this.
Diffstat (limited to 'src')
-rw-r--r--src/vm/zapsig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/zapsig.cpp b/src/vm/zapsig.cpp
index 4914246037..08d9228c40 100644
--- a/src/vm/zapsig.cpp
+++ b/src/vm/zapsig.cpp
@@ -1530,7 +1530,7 @@ BOOL ZapSig::EncodeMethod(
{
_ASSERTE(pConstrainedResolvedToken->cbTypeSpec > 0);
- DWORD moduleIndex = (DWORD)-1;
+ DWORD moduleIndex = MODULE_INDEX_NONE;
if (IsReadyToRunCompilation() && pMethod->GetModule()->IsInCurrentVersionBubble() && pInfoModule != (Module *) pConstrainedResolvedToken->tokenScope)
{
moduleIndex = (*((EncodeModuleCallback)pfnEncodeModule))(pEncodeModuleContext, (Module *) pConstrainedResolvedToken->tokenScope);