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:
Diffstat (limited to 'runtime/intrinsics.cs')
-rw-r--r--runtime/intrinsics.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/intrinsics.cs b/runtime/intrinsics.cs
index f058c4c9..c8ed3701 100644
--- a/runtime/intrinsics.cs
+++ b/runtime/intrinsics.cs
@@ -616,7 +616,7 @@ namespace IKVM.Internal
{
// it is only valid to replace a ThreadLocal instantiation by our ThreadStatic based version, if we can prove that the instantiation only happens once
// (which is the case when we're in <clinit> and there aren't any branches that lead to the current position)
- if (eic.Caller.Name != StringConstants.CLINIT)
+ if (!eic.Caller.IsClassInitializer)
{
return false;
}