1 ; RUN: opt < %s -passes=instcombine | llvm-dis
3 ; This used to crash trying to do a double-to-pointer conversion
6 %retval = alloca i32, align 4 ; <ptr> [#uses=1]
7 %tmp = call i32 (...) @f( double 3.000000e+00 ) ; <i32> [#uses=0]
10 return: ; preds = %entry
11 %retval1 = load i32, ptr %retval ; <i32> [#uses=1]
15 define i32 @f(ptr %p) {
17 %p_addr = alloca ptr ; <ptr> [#uses=1]
18 %retval = alloca i32, align 4 ; <ptr> [#uses=1]
19 store ptr %p, ptr %p_addr
22 return: ; preds = %entry
23 %retval1 = load i32, ptr %retval ; <i32> [#uses=1]