summaryrefslogtreecommitdiff
path: root/src/ilasm/asmman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ilasm/asmman.cpp')
-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);