mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
86978b73fc
Check for the correct number of parameters before querying their type. This fixes PR30455. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282038 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
379 B
LLVM
14 lines
379 B
LLVM
; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -inferattrs -S | FileCheck %s
|
|
%struct.statvfs64 = type { i32 }
|
|
|
|
; Function Attrs: norecurse uwtable
|
|
define i32 @foo() {
|
|
entry:
|
|
%st = alloca %struct.statvfs64, align 4
|
|
%0 = bitcast %struct.statvfs64* %st to i8*
|
|
ret i32 0
|
|
}
|
|
|
|
; CHECK: declare i32 @statvfs64(%struct.statvfs64*){{$}}
|
|
declare i32 @statvfs64(%struct.statvfs64*)
|