From cacb1a790e0c484f58731811f3460053af9adc12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 14 Oct 2019 20:07:16 +0200 Subject: [PATCH] Copy exception regions in the copy constructor (#27176) This is used to create MethodIL for the interop stubs. I introduced this field in #27109 but forgot to make a copy here. --- src/tools/crossgen2/Common/TypeSystem/IL/Stubs/ILEmitter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/crossgen2/Common/TypeSystem/IL/Stubs/ILEmitter.cs b/src/tools/crossgen2/Common/TypeSystem/IL/Stubs/ILEmitter.cs index ec272c85461b..b4b8c68452d9 100644 --- a/src/tools/crossgen2/Common/TypeSystem/IL/Stubs/ILEmitter.cs +++ b/src/tools/crossgen2/Common/TypeSystem/IL/Stubs/ILEmitter.cs @@ -567,6 +567,7 @@ public ILStubMethodIL(ILStubMethodIL methodIL) _tokens = methodIL._tokens; _method = methodIL._method; _debugInformation = methodIL._debugInformation; + _exceptionRegions = methodIL._exceptionRegions; _maxStack = methodIL._maxStack; }