summaryrefslogtreecommitdiff
path: root/src/zap
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-03-10 18:29:42 -0800
committerGitHub <noreply@github.com>2018-03-10 18:29:42 -0800
commit4e332945b6e697fccbbbec3fb163c5161253e79c (patch)
tree6489b7533c020b8a12f1aa8350d8d6f66aa9d587 /src/zap
parente35ba5a4574105b2c583570de1dbce1f75ccb928 (diff)
downloadcoreclr-4e332945b6e697fccbbbec3fb163c5161253e79c.tar.gz
coreclr-4e332945b6e697fccbbbec3fb163c5161253e79c.tar.bz2
coreclr-4e332945b6e697fccbbbec3fb163c5161253e79c.zip
Set IsGeneratingNgenPDB flag early (#16882)
Fixes #16864
Diffstat (limited to 'src/zap')
-rw-r--r--src/zap/zapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zap/zapper.cpp b/src/zap/zapper.cpp
index 52f2ce4468..59d05a08de 100644
--- a/src/zap/zapper.cpp
+++ b/src/zap/zapper.cpp
@@ -167,6 +167,8 @@ STDAPI CreatePDBWorker(LPCWSTR pwzAssemblyPath, LPCWSTR pwzPlatformAssembliesPat
EX_TRY
{
+ GetCompileInfo()->SetIsGeneratingNgenPDB(TRUE);
+
NGenOptions ngo = {0};
ngo.dwSize = sizeof(NGenOptions);
@@ -1061,8 +1063,6 @@ void Zapper::CreatePdbInCurrentDomain(BSTR pAssemblyPathOrName, BSTR pNativeImag
{
CORINFO_ASSEMBLY_HANDLE hAssembly = NULL;
- m_pEECompileInfo->SetIsGeneratingNgenPDB(TRUE);
-
IfFailThrow(m_pEECompileInfo->LoadAssemblyByPath(
pAssemblyPathOrName,