diff options
author | 2011-03-06 20:56:16 +0000 | |
---|---|---|
committer | 2011-03-06 20:56:16 +0000 | |
commit | 0cd15d2b78a68bcdc566b31d53287f63625560e7 (patch) | |
tree | a01d26f2d8b65a20c7d9dd042c8f644e671752a3 /BCT/BytecodeTranslator/WholeProgram.cs | |
parent | fa74660cb6cd7251eb3e03e9e281bf37a2018242 (diff) |
Fix Sink.FindOrCreateProcedure so that it takes an IMethodDefinition instead of an IMethodReference so it is guaranteed to know if the method is static or not and also to be able to access its parameters as IParameterDefinitions which is needed to know if they are out params or not.
Diffstat (limited to 'BCT/BytecodeTranslator/WholeProgram.cs')
-rw-r--r-- | BCT/BytecodeTranslator/WholeProgram.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BCT/BytecodeTranslator/WholeProgram.cs b/BCT/BytecodeTranslator/WholeProgram.cs index 1710b2a6..290426fc 100644 --- a/BCT/BytecodeTranslator/WholeProgram.cs +++ b/BCT/BytecodeTranslator/WholeProgram.cs @@ -181,7 +181,7 @@ namespace BytecodeTranslator { var elseBranch = new Bpl.StmtListBuilder();
- var proc = this.sink.FindOrCreateProcedure(resolvedMethod, resolvedMethod.IsStatic);
+ var proc = this.sink.FindOrCreateProcedure(resolvedMethod);
var methodname = proc.Name;
Bpl.CallCmd call;
|