1 ; This used to be invalid, but now it's valid. Ensure the verifier
3 ; RUN: llvm-as %s -o /dev/null
5 declare void @doit(i64* inalloca %a)
9 %a = alloca inalloca [2 x i32]
10 %b = bitcast [2 x i32]* %a to i64*
11 call void @doit(i64* inalloca %b)
17 %a = alloca inalloca i64
18 call void @doit(i64* inalloca %a)
19 call void @doit(i64* inalloca %a)
23 define void @c(i1 %cond) {
25 br i1 %cond, label %if, label %else
28 %a = alloca inalloca i64
32 %b = alloca inalloca i64
36 %args = phi i64* [ %a, %if ], [ %b, %else ]
37 call void @doit(i64* inalloca %args)