Add back a couple checks removed by r129128; the fact that an intitializer

is an array of structures doesn't imply it's a ConstantArray of
ConstantStruct.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Friedman
2011-04-09 09:11:09 +00:00
parent f5bf464b70
commit 18a2e50a9b
2 changed files with 11 additions and 4 deletions
@@ -0,0 +1,5 @@
; RUN: opt < %s -globalopt -disable-output
%0 = type { i32, void ()* }
@llvm.global_ctors = appending global [0 x %0] zeroinitializer