Commit 2bde9ac7 authored by Marc Gravell's avatar Marc Gravell

Merge pull request #111 from ssboisen/ssb/cleanup

Cleaned up some nesting
parents 70a9c31b 65235cbb
...@@ -2384,13 +2384,6 @@ public static void SetTypeMap(Type type, ITypeMap map) ...@@ -2384,13 +2384,6 @@ public static void SetTypeMap(Type type, ITypeMap map)
types[i - startBound] = reader.GetFieldType(i); types[i - startBound] = reader.GetFieldType(i);
} }
if (type.IsValueType)
{
il.Emit(OpCodes.Ldloca_S, (byte)1);
il.Emit(OpCodes.Initobj, type);
}
else
{
var ctor = typeMap.FindConstructor(names, types); var ctor = typeMap.FindConstructor(names, types);
if (ctor == null) if (ctor == null)
{ {
...@@ -2406,7 +2399,6 @@ public static void SetTypeMap(Type type, ITypeMap map) ...@@ -2406,7 +2399,6 @@ public static void SetTypeMap(Type type, ITypeMap map)
else else
specializedConstructor = ctor; specializedConstructor = ctor;
} }
}
il.BeginExceptionBlock(); il.BeginExceptionBlock();
if (type.IsValueType) if (type.IsValueType)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment