After using ReplaceAllUsesWith on an instruction, it may be necessary to erase it even though it is dead.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
bindings/go/llvm/ir.go | ||
---|---|---|
1213 | Nit: I'd call this EraseInstructionFromParent. (Also I'd deprecate EraseFromParent and rename it to EraseBasicBlockFromParent, but I'm not the Go bindings code owner so it's not my call.) |
bindings/go/llvm/ir.go | ||
---|---|---|
1213 | Yes, that sounds better but I've kept it consistent with EraseFromParentAsFunction and EraseFromParentAsGlobal. Should it be changed, then? |
bindings/go/llvm/ir.go | ||
---|---|---|
1213 | ping? |
bindings/go/llvm/ir.go | ||
---|---|---|
1213 | I'm not the Go bindings code owner so it seems better to go with the conservative naming. |
@aykevl I think you can ask for commit access, you've had more than a few patches merged.
Nit: I'd call this EraseInstructionFromParent. (Also I'd deprecate EraseFromParent and rename it to EraseBasicBlockFromParent, but I'm not the Go bindings code owner so it's not my call.)