From d7be2f0fec3744584f83d258152af845096a138f Mon Sep 17 00:00:00 2001 From: Tomas Date: Thu, 1 Apr 2021 16:29:37 +0200 Subject: [PATCH] Fix for NullRef during CG2 compilation of the crossgen2smoke test --- src/coreclr/tools/Common/TypeSystem/IL/MethodIL.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/Common/TypeSystem/IL/MethodIL.cs b/src/coreclr/tools/Common/TypeSystem/IL/MethodIL.cs index b5eb21fcba429..cfe1f93998b08 100644 --- a/src/coreclr/tools/Common/TypeSystem/IL/MethodIL.cs +++ b/src/coreclr/tools/Common/TypeSystem/IL/MethodIL.cs @@ -86,7 +86,7 @@ public abstract partial class MethodIL /// (typically a , , , /// or ). /// - public abstract Object GetObject(int token, NotFoundBehavior notFoundBehavior = NotFoundBehavior.ReturnNull); + public abstract Object GetObject(int token, NotFoundBehavior notFoundBehavior = NotFoundBehavior.Throw); /// /// Gets a list of exception regions this method body defines.