[sre] Don't warn about duplicate token for MonoArrayMethod
commitc0f6935b45a91829133869e1828ee47eb890055a
authorAleksey Kliger <alklig@microsoft.com>
Wed, 15 Nov 2017 22:10:29 +0000 (15 17:10 -0500)
committerMarek Safar <marek.safar@gmail.com>
Thu, 16 Nov 2017 08:15:47 +0000 (16 09:15 +0100)
treec9e74a9b437f6fc7705fee5403936ef7a156c240
parent8b7df777bbebd2d4712120739bb7958f96bda876
[sre] Don't warn about duplicate token for MonoArrayMethod

ModuleBuilder::GetArrayMethod returns a fresh MonoArrayMethod instance each
time it's called, even if you ask for the same method multiple times.  On the
other hand, mono_image_get_array_token caches tokens by method signature.
Therefore mono_image_create_token should expect collisions.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=60238
mono/metadata/sre.c