[dotnet-linker] Make sure local variables are initialized before use in generated method bodies.
This commit is contained in:
Родитель
a248260de4
Коммит
643015e9cb
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче