Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 80f4485

Browse files
Michael LetterleRussKeldorph
authored andcommitted
Do not throw an assertion on no mscorlib
It's okay to use debuggable attributes from other BaseAsmRef's Fixes #10608
1 parent 45bdd19 commit 80f4485

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ilasm/asmman.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@ void AsmMan::EmitDebuggableAttribute(mdToken tkOwner)
297297
else
298298
{
299299
AsmManAssembly *pAssembly = GetAsmRefByName("mscorlib");
300-
_ASSERTE(pAssembly != NULL);
301-
PREFIX_ASSUME(pAssembly != NULL);
302-
fOldStyle = (pAssembly->usVerMajor == 1);
300+
if(pAssembly != NULL)
301+
{
302+
fOldStyle = (pAssembly->usVerMajor == 1);
303+
}
303304
}
304305

305306
bsBytes->appendInt8(1);

0 commit comments

Comments
 (0)