Browse Source

Fix stloc type analysis.

pull/37/head
Daniel Grunwald 15 years ago
parent
commit
d1efa9387e
  1. 3
      ICSharpCode.Decompiler/ILAst/TypeAnalysis.cs

3
ICSharpCode.Decompiler/ILAst/TypeAnalysis.cs

@ -127,9 +127,8 @@ namespace Decompiler
TypeReference t = InferTypeForExpression(expr.Arguments.Single(), ((ILVariable)expr.Operand).Type); TypeReference t = InferTypeForExpression(expr.Arguments.Single(), ((ILVariable)expr.Operand).Type);
if (v.Type == null) if (v.Type == null)
v.Type = t; v.Type = t;
return t;
} }
return null; return v.Type;
} }
case Code.Ldloc: case Code.Ldloc:
{ {

Loading…
Cancel
Save