summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Letterle <mletterle@preemptive.com>2017-03-31 11:32:32 -0400
committerRuss Keldorph <russ.keldorph@microsoft.com>2017-04-17 19:21:54 -0700
commit80f4485197c62b13fa6cbaaab06a2c184e5ed316 (patch)
tree23bd521f6add61b7810f09ae0221eee165346b52 /src
parent45bdd19a64ae96600ae7b26b36fde2da1357cc3b (diff)
downloadcoreclr-80f4485197c62b13fa6cbaaab06a2c184e5ed316.tar.gz
coreclr-80f4485197c62b13fa6cbaaab06a2c184e5ed316.tar.bz2
coreclr-80f4485197c62b13fa6cbaaab06a2c184e5ed316.zip
Do not throw an assertion on no mscorlib
It's okay to use debuggable attributes from other BaseAsmRef's Fixes #10608
Diffstat (limited to 'src')
-rw-r--r--src/ilasm/asmman.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ilasm/asmman.cpp b/src/ilasm/asmman.cpp
index 0f0d1cff71..22e780f554 100644
--- a/src/ilasm/asmman.cpp
+++ b/src/ilasm/asmman.cpp
@@ -297,9 +297,10 @@ void AsmMan::EmitDebuggableAttribute(mdToken tkOwner)
else
{
AsmManAssembly *pAssembly = GetAsmRefByName("mscorlib");
- _ASSERTE(pAssembly != NULL);
- PREFIX_ASSUME(pAssembly != NULL);
- fOldStyle = (pAssembly->usVerMajor == 1);
+ if(pAssembly != NULL)
+ {
+ fOldStyle = (pAssembly->usVerMajor == 1);
+ }
}
bsBytes->appendInt8(1);