summaryrefslogtreecommitdiff
path: root/src/zap
diff options
context:
space:
mode:
authorFadi Hanna <fadim@microsoft.com>2019-05-15 12:18:19 -0700
committerGitHub <noreply@github.com>2019-05-15 12:18:19 -0700
commit9bf825258fdaffc9e2af72c9421eabe725245717 (patch)
tree63f9b68d74e11e6b4d965728c93f5570f2b00e5b /src/zap
parentbd7ca275020d61b7303ab36bbf0b06f8c7416bf7 (diff)
downloadcoreclr-9bf825258fdaffc9e2af72c9421eabe725245717.tar.gz
coreclr-9bf825258fdaffc9e2af72c9421eabe725245717.tar.bz2
coreclr-9bf825258fdaffc9e2af72c9421eabe725245717.zip
Making crossgen throw when compiling with the PartialNgen flag and no IBC data (#24557)
* Making crossgen throw when compiling with the PartialNgen flag and no IBC data * Adding missing m_fPartialNGen check
Diffstat (limited to 'src/zap')
-rw-r--r--src/zap/zapimage.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp
index 2dce179071..a70b710fe0 100644
--- a/src/zap/zapimage.cpp
+++ b/src/zap/zapimage.cpp
@@ -3378,6 +3378,13 @@ void ZapImage::LoadProfileData()
m_zapper->Warning(W("Warning: Invalid profile data was ignored for %s\n"), m_pModuleFileName);
}
}
+
+#ifdef CROSSGEN_COMPILE
+ if (m_zapper->m_pOpt->m_fPartialNGen && (m_pRawProfileData == NULL || m_cRawProfileData == 0))
+ {
+ ThrowHR(CLR_E_CROSSGEN_NO_IBC_DATA_FOUND);
+ }
+#endif
}
// Initializes our form of the profile data stored in the assembly.