OSDN Git Service

fix PR3281:accepted0[02].ll: represent empty arrays distinctly, and
authorChris Lattner <sabre@nondot.org>
Mon, 5 Jan 2009 07:52:51 +0000 (07:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Jan 2009 07:52:51 +0000 (07:52 +0000)
commita5ce0fe7cee4f6de9099a3f358cbb5ea17005554
tree7b9cde749e28b09563533c0954b8b0a6d763119d
parent27878a2451cf5f577e1fcec893bcd935338901a4
fix PR3281:accepted0[02].ll: represent empty arrays distinctly, and
diagnose attempts to initialize non-empty arrays with them.  This
produces:
llvm-as: accepted02.ll:1:28: invalid empty array initializer
@"o" = global [5 x double] []
                           ^
llvm-as: accepted00.ll:1:32: invalid empty array initializer
@"za" = thread_local global {} []
                               ^
[

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61676 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp