Skip to content

Commit

Permalink
Merge pull request #64 from llir/fix-unused-y-param
Browse files Browse the repository at this point in the history
Fix NewSelect(x, x) => NewSelect(x, y)
  • Loading branch information
mewmew committed Feb 9, 2019
2 parents 59d9946 + 4930b08 commit 10a64da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ir/block_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (block *Block) NewPhi(incs ...*Incoming) *InstPhi {
// NewSelect appends a new select instruction to the basic block based on the
// given selection condition and operands.
func (block *Block) NewSelect(cond, x, y value.Value) *InstSelect {
inst := NewSelect(cond, x, x)
inst := NewSelect(cond, x, y)
block.Insts = append(block.Insts, inst)
return inst
}
Expand Down

0 comments on commit 10a64da

Please sign in to comment.