From 436c42ec3dc9f93ecce02ee9d47da6cf7be9aa7d Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 17 Jan 2014 23:58:17 +0000 Subject: Add an inalloca flag to allocas 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 llvm-svn: 199525 --- llvm/test/Verifier/inalloca-vararg.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test/Verifier/inalloca-vararg.ll') diff --git a/llvm/test/Verifier/inalloca-vararg.ll b/llvm/test/Verifier/inalloca-vararg.ll index 6729c428304..8521ebce2d9 100755 --- a/llvm/test/Verifier/inalloca-vararg.ll +++ b/llvm/test/Verifier/inalloca-vararg.ll @@ -2,7 +2,7 @@ declare void @h(i32, ...) define void @i() { - %args = alloca i32 + %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 -- cgit v1.2.3