blob: ed8c704b115363091e917c2c1778d56221d72951 [file] [log] [blame]
Chris Lattnerc6424352002-08-22 20:30:06 +00001; Dominance relationships is not calculated correctly for unreachable blocks,
2; which causes the verifier to barf on this input.
3
4int %test(bool %b) {
5BB0: ret int 7 ; Loop is unreachable
6
7Loop:
8 %B = phi int [%B, %L2], [%B, %Loop] ; PHI has same value always.
9 br bool %b, label %L2, label %Loop
10L2:
11 br label %Loop
12}
13