diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-04-09 09:11:09 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-04-09 09:11:09 +0000 |
commit | 18a2e50a9bfe4ecde57dc3913a7bd98b954ec81a (patch) | |
tree | 311eab0e3f427f9a24017d942017b25e2f782295 /test/Transforms | |
parent | f5bf464b701908d16f7cee0bbf2b8c8df4f3a917 (diff) | |
download | external_llvm-18a2e50a9bfe4ecde57dc3913a7bd98b954ec81a.zip external_llvm-18a2e50a9bfe4ecde57dc3913a7bd98b954ec81a.tar.gz external_llvm-18a2e50a9bfe4ecde57dc3913a7bd98b954ec81a.tar.bz2 |
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
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll b/test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll new file mode 100644 index 0000000..321a487 --- /dev/null +++ b/test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll @@ -0,0 +1,5 @@ +; RUN: opt < %s -globalopt -disable-output + +%0 = type { i32, void ()* } +@llvm.global_ctors = appending global [0 x %0] zeroinitializer + |