提交 4deaeae3 编写于 作者: N Neal Gafter

Fix a build break by adding a parameter to an otherwise parameterless struct ctor

上级 0d7ac219
......@@ -1375,7 +1375,7 @@ private BoundStatement ChainImplicitStructConstructor(MethodSymbol methodSymbol,
while (index >= hoistedVariables.Count)
{
// Empty slots may be present if variables were deleted during EnC.
hoistedVariables.Add(new EncHoistedLocalInfo());
hoistedVariables.Add(new EncHoistedLocalInfo(true));
}
hoistedVariables[index] = new EncHoistedLocalInfo(field.SlotDebugInfo, (Cci.ITypeReference)field.Type);
......
......@@ -13,7 +13,7 @@ internal struct EncHoistedLocalInfo : IEquatable<EncHoistedLocalInfo>
public readonly LocalSlotDebugInfo SlotInfo;
public readonly Cci.ITypeReference Type;
public EncHoistedLocalInfo()
public EncHoistedLocalInfo(bool ignored)
{
SlotInfo = new LocalSlotDebugInfo(SynthesizedLocalKind.EmitterTemp, LocalDebugId.None);
Type = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册