Skip to content

Commit ee293c3

Browse files
Try fixing native AOT outerloop runs (#116961)
1 parent 18497e1 commit ee293c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/TypeMapMetadata.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,12 @@ public static TypeMapMetadata CreateFromAssembly(EcmaAssembly assembly, Compiler
165165
continue;
166166
}
167167

168-
TypeDesc type = (TypeDesc)currentAssembly.GetObject(attributeType);
168+
TypeDesc type = (TypeDesc)currentAssembly.GetObject(attributeType, NotFoundBehavior.ReturnNull);
169+
if (type == null)
170+
{
171+
// If the type doesn't resolve, it can't be a type map attribute
172+
continue;
173+
}
169174

170175
TypeMapAttributeKind attrKind = LookupTypeMapType(type);
171176

0 commit comments

Comments
 (0)