Add back a couple checks removed by r129128; the fact that an intitializer
authorEli Friedman <eli.friedman@gmail.com>
Sat, 9 Apr 2011 09:11:09 +0000 (09:11 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 9 Apr 2011 09:11:09 +0000 (09:11 +0000)
commit18a2e50a9bfe4ecde57dc3913a7bd98b954ec81a
tree311eab0e3f427f9a24017d942017b25e2f782295
parentf5bf464b701908d16f7cee0bbf2b8c8df4f3a917
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
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll [new file with mode: 0644]