
The 2^14 limit was completely arbitrary; the generic limit is still arbitrary, but at least it's the same arbitrary limit as everything else. While I'm here, also add a verifier check for the ByValOrByRefSize.
5 lines
152 B
LLVM
5 lines
152 B
LLVM
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: huge 'byval' arguments are unsupported
|
|
define void @f(ptr byval([2147483648 x i16])) { ret void }
|