mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
LowerConstantIntrinsics: Fix missing test for byval behavior
This commit is contained in:
parent
ea76595b8b
commit
f86abf0111
@ -81,3 +81,11 @@ entry:
|
||||
i1 false, i1 false)
|
||||
ret i64 %0
|
||||
}
|
||||
|
||||
; CHECK-LABEL: @test_objectsize_byval_arg(
|
||||
; CHECK: ret i64 42
|
||||
define i64 @test_objectsize_byval_arg([42 x i8]* byval([42 x i8]) %ptr) {
|
||||
%cast = bitcast [42 x i8]* %ptr to i8*
|
||||
%size = tail call i64 @llvm.objectsize.i64(i8* %cast, i1 true, i1 false, i1 false)
|
||||
ret i64 %size
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user