transform: remove duplicate if in gc transform

This commit is contained in:
Damian Gryski
2022-11-17 10:56:42 -08:00
committed by Ron Evans
parent 4d14d3cd54
commit f0a271bd21
-3
View File
@@ -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() {