From 2cf5c942425b89d773d28cd1ad8e8204c84010d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 24 Oct 2016 15:54:05 -0700 Subject: [PATCH] Workaround for #2073 --- src/Common/src/TypeSystem/IL/Stubs/DelegateThunks.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Common/src/TypeSystem/IL/Stubs/DelegateThunks.cs b/src/Common/src/TypeSystem/IL/Stubs/DelegateThunks.cs index b5065fdd385..a281a0cacd7 100644 --- a/src/Common/src/TypeSystem/IL/Stubs/DelegateThunks.cs +++ b/src/Common/src/TypeSystem/IL/Stubs/DelegateThunks.cs @@ -191,6 +191,9 @@ protected void EmitTransformedCalli(ILEmitter emitter, ILCodeStream codestream, codestream.Emit(ILOpcode.calli, emitter.NewToken(targetSignature)); codestream.EmitLabel(done); + + // Workaround for https://github.com/dotnet/corert/issues/2073 + codestream.Emit(ILOpcode.nop); } }