diff options
author | jfrijters <jfrijters> | 2010-06-28 13:38:00 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2010-06-28 13:38:00 +0400 |
commit | 6a3cdd3851a97638c1faaca7a56ec3589dc96ed4 (patch) | |
tree | 491bb7f26910a8ea907e4e530237f3415709cb6b /reflect/GenericWrappers.cs | |
parent | a07e3ae9425fcacdf26eacd3bb022d72b6022b9f (diff) |
Avoid adding duplicate MethodSpec rows.
Diffstat (limited to 'reflect/GenericWrappers.cs')
-rw-r--r-- | reflect/GenericWrappers.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reflect/GenericWrappers.cs b/reflect/GenericWrappers.cs index 94b8288c..8290f140 100644 --- a/reflect/GenericWrappers.cs +++ b/reflect/GenericWrappers.cs @@ -245,7 +245,7 @@ namespace IKVM.Reflection rec.Method = module.ImportMember(GetGenericMethodDefinition()); } rec.Instantiation = module.Blobs.Add(spec); - return 0x2B000000 | module.MethodSpec.AddRecord(rec); + return 0x2B000000 | module.MethodSpec.FindOrAddRecord(rec); } } |