diff --git a/src/llvm-late-gc-lowering.cpp b/src/llvm-late-gc-lowering.cpp index e9b63e4b5373a..8ba321c75b239 100644 --- a/src/llvm-late-gc-lowering.cpp +++ b/src/llvm-late-gc-lowering.cpp @@ -1115,7 +1115,7 @@ void RecursivelyVisit(callback f, Value *V) { if (isa(TheUser) || isa(TheUser) || isa(TheUser) || isa(TheUser) || // TODO: should these be removed from this list? isa(TheUser) || isa(TheUser) || - isa(TheUser) || isa(TheUser)|| // ICmpEQ/ICmpNE can be used with ptr types + isa(TheUser) || // ICmpEQ/ICmpNE can be used with ptr types isa(TheUser) || isa(TheUser)) continue; if (isa(TheUser) || isa(TheUser) || isa(TheUser)) { diff --git a/test/llvmpasses/late-lower-gc.ll b/test/llvmpasses/late-lower-gc.ll index 8f7b2523b6996..62122b2ad4ec9 100644 --- a/test/llvmpasses/late-lower-gc.ll +++ b/test/llvmpasses/late-lower-gc.ll @@ -226,20 +226,6 @@ define void @decayar([2 x {} addrspace(10)* addrspace(11)*] %ar) { ; OPAQUE: %r = call i32 @callee_root(ptr addrspace(10) %l0, ptr addrspace(10) %l1) ; OPAQUE: call void @julia.pop_gc_frame(ptr %gcframe) -define swiftcc ptr addrspace(10) @insert_element(ptr swiftself %0) { -; CHECK-LABEL: @insert_element - %2 = alloca [10 x i64], i32 1, align 8 -; CHECK: %gcframe = call ptr @julia.new_gc_frame(i32 10) -; CHECK: [[gc_slot_addr_:%.*]] = call ptr @julia.get_gc_frame_slot(ptr %gcframe, i32 0) -; CHECK: call void @julia.push_gc_frame(ptr %gcframe, i32 10) - call void null(ptr sret([2 x [5 x ptr addrspace(10)]]) %2, ptr null, ptr addrspace(11) null, ptr null) - %4 = insertelement <4 x ptr> zeroinitializer, ptr %2, i32 0 -; CHECK: [[gc_slot_addr_:%.*]] = insertelement <4 x ptr> zeroinitializer, ptr [[gc_slot_addr_:%.*]], i32 0 -; CHECK: call void @julia.pop_gc_frame(ptr %gcframe) - ret ptr addrspace(10) null -} - - !0 = !{i64 0, i64 23} !1 = !{!1} !2 = !{!7} ; scope list