mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-22 21:39:01 +00:00
transform: remove duplicate if in gc transform
This commit is contained in:
@@ -143,9 +143,6 @@ func MakeGCStackSlots(mod llvm.Module) bool {
|
|||||||
for _, call := range calls {
|
for _, call := range calls {
|
||||||
ptr := call.Operand(0)
|
ptr := call.Operand(0)
|
||||||
call.EraseFromParentAsInstruction()
|
call.EraseFromParentAsInstruction()
|
||||||
if ptr.IsAInstruction().IsNil() {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
// Some trivial optimizations.
|
// Some trivial optimizations.
|
||||||
if ptr.IsAInstruction().IsNil() {
|
if ptr.IsAInstruction().IsNil() {
|
||||||
|
|||||||
Reference in New Issue
Block a user