diff options
Diffstat (limited to 'src/CompilerServices/CompilerServices.cs')
| -rw-r--r-- | src/CompilerServices/CompilerServices.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs index 3d4ebc5a..1f5df063 100644 --- a/src/CompilerServices/CompilerServices.cs +++ b/src/CompilerServices/CompilerServices.cs @@ -254,14 +254,7 @@ namespace go dynHandleCpt++; //register target object reference - int dstIdx = Interface.References.IndexOf(binding.Source); - - if (dstIdx < 0) { - dstIdx = Interface.References.Count; - Interface.References.Add (binding.Source); - } - - + int dstIdx = Interface.Reference(binding.Source); #region IL generation ILGenerator il = dm.GetILGenerator(256); |