From f0a271bd2159245215fdedd60fff3b62a233556f Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Thu, 17 Nov 2022 10:56:42 -0800 Subject: [PATCH] transform: remove duplicate if in gc transform --- transform/gc.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/transform/gc.go b/transform/gc.go index e2d23987..a9b5ba74 100644 --- a/transform/gc.go +++ b/transform/gc.go @@ -143,9 +143,6 @@ func MakeGCStackSlots(mod llvm.Module) bool { for _, call := range calls { ptr := call.Operand(0) call.EraseFromParentAsInstruction() - if ptr.IsAInstruction().IsNil() { - continue - } // Some trivial optimizations. if ptr.IsAInstruction().IsNil() {