Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2015-03-19 12:20:39 +0300
committerjfrijters <jfrijters>2015-03-19 12:20:39 +0300
commit99c785ea995964eadb1e76bfb46f018491fcd3cb (patch)
treea54233beb4e556906f353450d2274ec16b8c2258
parenta9e96ca9e319f743d910e23c50b60739ca7ed6c5 (diff)
Bug fix. Handle unloadable type in BSM extra arguments.
-rw-r--r--runtime/compiler.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/compiler.cs b/runtime/compiler.cs
index 957029f2..13305011 100644
--- a/runtime/compiler.cs
+++ b/runtime/compiler.cs
@@ -3190,7 +3190,11 @@ sealed class Compiler
TypeWrapper wrapper = GetWrapperType(constType, out dummy);
wrapper.GetMethodWrapper("valueOf", "(" + constType.SigName + ")" + wrapper.SigName, false).EmitCall(ilgen);
}
- if (targetType.IsPrimitive)
+ if (targetType.IsUnloadable)
+ {
+ // do nothing
+ }
+ else if (targetType.IsPrimitive)
{
string unbox;
TypeWrapper wrapper = GetWrapperType(targetType, out unbox);