[netcore] Don't return REFERENCE_MISSING in netcore_load_reference
authorRyan Lucia <rylucia@microsoft.com>
Thu, 8 Aug 2019 22:07:54 +0000 (18:07 -0400)
committerMarek Safar <marek.safar@gmail.com>
Fri, 9 Aug 2019 07:23:10 +0000 (09:23 +0200)
Commit migrated from https://github.com/mono/mono/commit/6a459c25d771dec436bb6a8785c683f6b15fe6f7

src/mono/mono/metadata/assembly.c

index 01a524d..0226d08 100644 (file)
@@ -1641,8 +1641,6 @@ netcore_load_reference (MonoAssemblyName *aname, MonoAssemblyLoadContext *alc, M
        if (reference)
                goto leave;
 
-       reference = (MonoAssembly*)REFERENCE_MISSING;
-
 leave:
        return reference;
 }