llvm.org GIT mirror llvm / 28b372f test / Transforms / LowerSwitch / 2004-03-13-SwitchIsDefaultCrash.ll
28b372f

Tree @28b372f (Download .tar.gz)

2004-03-13-SwitchIsDefaultCrash.ll @28b372fraw · history · blame

; RUN: llvm-as < %s | opt -lowerswitch -disable-output

void %solve() {
entry:
	%targetBlock = call ushort %solve_code( )		; <ushort> [#uses=1]
	br label %codeReplTail

then.1:		; preds = %codeReplTail
	ret void

loopexit.0:		; preds = %codeReplTail
	ret void

codeReplTail:		; preds = %entry, %codeReplTail
	switch ushort %targetBlock, label %codeReplTail [
		 ushort 0, label %loopexit.0
		 ushort 1, label %then.1
	]
}

declare ushort %solve_code()