diff options
author | qadeer <qadeer@microsoft.com> | 2011-08-05 21:26:38 -0700 |
---|---|---|
committer | qadeer <qadeer@microsoft.com> | 2011-08-05 21:26:38 -0700 |
commit | 87946bf9c24a394c93dc3ffbae7c544640e8c120 (patch) | |
tree | 1bbd190e75234384df4f1b111a1b1bda407f6fcd /BCT/BytecodeTranslator/Program.cs | |
parent | c1ffee9e345f79bdd52830ea2f01949fe9e0441e (diff) |
fixed a bug in delegate dispatcher name for generic invoke methods
Diffstat (limited to 'BCT/BytecodeTranslator/Program.cs')
-rw-r--r-- | BCT/BytecodeTranslator/Program.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BCT/BytecodeTranslator/Program.cs b/BCT/BytecodeTranslator/Program.cs index e6f86e1f..7a56db76 100644 --- a/BCT/BytecodeTranslator/Program.cs +++ b/BCT/BytecodeTranslator/Program.cs @@ -390,7 +390,8 @@ namespace BytecodeTranslator { }
try {
- var decl = sink.FindOrCreateProcedure(invokeMethod).Decl;
+ IMethodDefinition unspecializedInvokeMethod = Sink.Unspecialize(invokeMethod).ResolvedMethod;
+ var decl = sink.FindOrCreateProcedure(unspecializedInvokeMethod).Decl;
var proc = decl as Bpl.Procedure;
var invars = proc.InParams;
var outvars = proc.OutParams;
|