OSDN Git Service

reject undef/zero labels. This fixes PR3281:crash0[56].ll with these
authorChris Lattner <sabre@nondot.org>
Mon, 5 Jan 2009 08:13:38 +0000 (08:13 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Jan 2009 08:13:38 +0000 (08:13 +0000)
commit50c7cea3551725f75d4c0d9bdf1865c13b17ddf1
tree17fb3be3a238f5f665abac6dfe8593bc8cbda478
parent34728c8faeccf43b31c89341e18afe86e0b0360f
reject undef/zero labels.  This fixes PR3281:crash0[56].ll with these
diagnostics:
llvm-as: crash05.ll:1:14: invalid type for null constant
global label zeroinitializer addrspace (75), section "c"
             ^
llvm-as: crash06.ll:2:14: invalid type for null constant
  udiv label zeroinitializer, @0
             ^

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