summaryrefslogtreecommitdiffstats
path: root/llvm/test/Verifier/inalloca-vararg.ll
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-01-17 23:58:17 +0000
committerReid Kleckner <reid@kleckner.net>2014-01-17 23:58:17 +0000
commit436c42ec3dc9f93ecce02ee9d47da6cf7be9aa7d (patch)
tree83823f837567e7c11b9997293ceb9b48af3b555d /llvm/test/Verifier/inalloca-vararg.ll
parent2b164bd98d2123b0e30a285a3295c839e76b06f2 (diff)
downloadbcm5719-llvm-436c42ec3dc9f93ecce02ee9d47da6cf7be9aa7d.tar.gz
bcm5719-llvm-436c42ec3dc9f93ecce02ee9d47da6cf7be9aa7d.zip
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
Diffstat (limited to 'llvm/test/Verifier/inalloca-vararg.ll')
-rwxr-xr-xllvm/test/Verifier/inalloca-vararg.ll2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud