• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=c
2
3; This case was emitting code that looked like this:
4; ...
5;   llvm_BB1:       /* no statement here */
6; }
7;
8; Which the Sun C compiler rejected, so now we are sure to put a return
9; instruction in there if the basic block is otherwise empty.
10;
11define void @test() {
12        br label %BB1
13
14BB2:            ; preds = %BB2
15        br label %BB2
16
17BB1:            ; preds = %0
18        ret void
19}
20
21