mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
ed48caf5e7
null in the case of an empty struct, so don't try to call getNumValues on it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81180 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
340 B
LLVM
15 lines
340 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 | FileCheck %s
|
|
|
|
; Don't crash on an empty struct member.
|
|
|
|
; CHECK: movl $2, 4(%esp)
|
|
; CHECK: movl $1, (%esp)
|
|
|
|
%testType = type {i32, [0 x i32], i32}
|
|
|
|
define void @foo() nounwind {
|
|
%1 = alloca %testType
|
|
volatile store %testType {i32 1, [0 x i32] zeroinitializer, i32 2}, %testType* %1
|
|
ret void
|
|
}
|