mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
3cbfa1617f
Summary: The only current use of this flag is to mark the alloca as dynamic, even if its in the entry block. The stack adjustment for the alloca can never be folded into the prologue because the call may clear it and it has to be allocated at the top of the stack. Reviewers: majnemer CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2571 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199525 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
253 B
LLVM
Executable File
10 lines
253 B
LLVM
Executable File
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
declare void @h(i32, ...)
|
|
define void @i() {
|
|
%args = alloca i32, inalloca
|
|
call void (i32, ...)* @h(i32 1, i32* inalloca %args, i32 3)
|
|
; CHECK: inalloca isn't on the last argument!
|
|
ret void
|
|
}
|