1 ; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
2 ; RUN: grep "%SJE.0.0.u.lcssa = phi .struct.SetJmpMapEntry" &&
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
4 ; RUN: grep "%SJE.0.0.u.lcssa1 = phi .struct.SetJmpMapEntry"
6 %struct.SetJmpMapEntry = type { sbyte*, uint, %struct.SetJmpMapEntry* }
8 implementation ; Functions:
10 void %__llvm_sjljeh_try_catching_longjmp_exception() {
12 br bool false, label %UnifiedReturnBlock, label %no_exit
14 no_exit: ; preds = %endif, %entry
15 %SJE.0.0 = phi %struct.SetJmpMapEntry* [ %tmp.24, %endif ], [ null, %entry ] ; <%struct.SetJmpMapEntry*> [#uses=1]
16 br bool false, label %then, label %endif
18 then: ; preds = %no_exit
19 %tmp.20 = getelementptr %struct.SetJmpMapEntry* %SJE.0.0, int 0, uint 1 ; <uint*> [#uses=0]
22 endif: ; preds = %no_exit
23 %tmp.24 = load %struct.SetJmpMapEntry** null ; <%struct.SetJmpMapEntry*> [#uses=1]
24 br bool false, label %UnifiedReturnBlock, label %no_exit
26 UnifiedReturnBlock: ; preds = %endif, %entry