summaryrefslogtreecommitdiffstats
path: root/test/Transforms/RaiseAllocations/2007-10-17-InvokeFree.ll
blob: 675bb3d829f777bafb31e5c353ae3c234cd18636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: opt < %s -raiseallocs -stats -disable-output |&  \
; RUN:  not grep {Number of allocations raised}
define void @foo() {
entry:
	%buffer = alloca i16*
	%tmp = load i16** %buffer, align 8
	invoke i32(...)* @free(i16* %tmp)
		to label %invcont unwind label %unwind
invcont:
	br label %finally
unwind:
	br label %finally
finally:
	ret void
}
declare i32 @free(...)

OpenPOWER on IntegriCloud