Do not throw an assertion on no mscorlib
[platform/upstream/coreclr.git] / src / ilasm / asmman.cpp
index 0f0d1cf..22e780f 100644 (file)
@@ -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);