• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -dse -disable-output < %s
2; test that we don't crash
3declare void @bar()
4
5define void @foo() {
6bb1:
7  %memtmp3.i = alloca [21 x i8], align 1
8  %0 = getelementptr inbounds [21 x i8], [21 x i8]* %memtmp3.i, i64 0, i64 0
9  br label %bb3
10
11bb2:
12  call void @llvm.lifetime.end(i64 -1, i8* %0)
13  br label %bb3
14
15bb3:
16  call void @bar()
17  call void @llvm.lifetime.end(i64 -1, i8* %0)
18  br label %bb4
19
20bb4:
21  ret void
22
23}
24
25declare void @llvm.lifetime.end(i64, i8* nocapture) nounwind
26