Browse Source

remove doubled check from CopyPropagation

pull/728/head
Siegfried Pammer 9 years ago
parent
commit
ab9083f897
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs

2
ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs

@ -90,7 +90,7 @@ namespace ICSharpCode.Decompiler.IL @@ -90,7 +90,7 @@ namespace ICSharpCode.Decompiler.IL
case VariableKind.StackSlot:
// Variables are be copied only if both they and the target copy variable are generated,
// and if the variable has only a single assignment
return v.IsSingleDefinition && v.Kind == VariableKind.StackSlot && target.Kind == VariableKind.StackSlot;
return v.IsSingleDefinition && target.Kind == VariableKind.StackSlot;
default:
return false;
}

Loading…
Cancel
Save