mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
ad60d3c304
This makes things a lot easier, because we can now talk about the "argument allocation", which allocates all the memory for the call in one shot. The only functional change is to the verifier for a feature that hasn't shipped yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199434 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
425 B
LLVM
22 lines
425 B
LLVM
; This used to be invalid, but now it's valid. Ensure the verifier
|
|
; doesn't reject it.
|
|
; RUN: llvm-as %s -o /dev/null
|
|
|
|
declare void @doit(i64* inalloca %a)
|
|
|
|
define void @a() {
|
|
entry:
|
|
%a = alloca [2 x i32]
|
|
%b = bitcast [2 x i32]* %a to i64*
|
|
call void @doit(i64* inalloca %b)
|
|
ret void
|
|
}
|
|
|
|
define void @b() {
|
|
entry:
|
|
%a = alloca i64
|
|
call void @doit(i64* inalloca %a)
|
|
call void @doit(i64* inalloca %a)
|
|
ret void
|
|
}
|