llvm.org GIT mirror llvm / a515b4e
Add testcase for the previous commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151475 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 7 years ago
1 changed file(s) with 25 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: opt %s -dse -disable-output
1 ; test that we don't crash
2 declare void @bar()
3
4 define void @foo() {
5 bb1:
6 %memtmp3.i = alloca [21 x i8], align 1
7 %0 = getelementptr inbounds [21 x i8]* %memtmp3.i, i64 0, i64 0
8 br label %bb3
9
10 bb2:
11 call void @llvm.lifetime.end(i64 -1, i8* %0)
12 br label %bb3
13
14 bb3:
15 call void @bar()
16 call void @llvm.lifetime.end(i64 -1, i8* %0)
17 br label %bb4
18
19 bb4:
20 ret void
21
22 }
23
24 declare void @llvm.lifetime.end(i64, i8* nocapture) nounwind