mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
9cb3c09156
llvm-svn: 43083
18 lines
378 B
LLVM
18 lines
378 B
LLVM
; RUN: llvm-as <%s | opt -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(...)
|
|
|