llvm.org GIT mirror llvm / 9027b3c
Fix PR1896 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45568 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
2 changed file(s) with 27 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
639639 // If we get here we could have stores, selects, or phi nodes whose values
640640 // are loaded.
641641 assert((isa(*GUI) || isa(*GUI) ||
642 isa(*GUI)) &&
642 isa(*GUI) || isa(*GUI)) &&
643643 "Only expect load and stores!");
644644 }
645645
0 ; RUN: llvm-as < %s | opt -globalopt | llvm-dis
1 ; PR1896
2
3 @indirect1 = internal global void (i32)* null ; [#uses=2]
4
5 declare void @indirectmarked(i32)
6
7 define i32 @main() {
8 entry:
9 br i1 false, label %cond_next20.i, label %cond_true.i9
10
11 cond_true.i9: ; preds = %entry
12 ret i32 0
13
14 cond_next20.i: ; preds = %entry
15 store void (i32)* @indirectmarked, void (i32)** @indirect1, align 4
16 br i1 false, label %cond_next21.i.i23.i, label %stack_restore
17
18 stack_restore: ; preds = %cond_next20.i
19 ret i32 0
20
21 cond_next21.i.i23.i: ; preds = %cond_next20.i
22 %tmp6.i4.i = load i32* bitcast (void (i32)** @indirect1 to i32*), align 4 ; [#uses=0]
23 ret i32 0
24 }
25