1 ; RUN: opt < %s -instcombine -S | grep icmp 2 ; PR1678 3 4 @A = alias weak void ()* @B ; <void ()*> [#uses=1] 5 6 declare extern_weak void @B() 7 8 define i32 @active() { 9 entry: 10 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] 11 %tmp1 = icmp ne void ()* @A, null ; <i1> [#uses=1] 12 %tmp12 = zext i1 %tmp1 to i32 ; <i32> [#uses=1] 13 ret i32 %tmp12 14 } 15