[dotnet-linker] Make sure local variables are initialized before use in generated method bodies.

This commit is contained in:
Rolf Bjarne Kvinge 2023-05-17 16:04:52 +02:00
Родитель a248260de4
Коммит 643015e9cb
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -33,6 +33,7 @@ namespace Xamarin.Linker {
public static MethodBody CreateBody (this MethodDefinition self, out ILProcessor il)
{
var body = new MethodBody (self);
body.InitLocals = true;
self.Body = body;
il = body.GetILProcessor ();
return body;