mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
cabfea2a58
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81540 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
369 B
LLVM
18 lines
369 B
LLVM
; 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(...)
|
|
|