]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r236149:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 30 May 2012 06:53:09 +0000 (06:53 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 30 May 2012 06:53:09 +0000 (06:53 +0000)
commitfaec8f3ec693ee103e2b4c581698944f196c1025
tree9c7f41ab590c6bbf4b1bf98a0a910ad15140bb31
parent019344235a52a933ccdf4013fbf6f9b5f585cb44
MFC r236149:

Pull in r157212 from upstream clang trunk:

  Revert r115805. An array type is required to have a range type,
  however, the range can be unknown for the upper bound.

  Testcase to follow.

  Part of rdar://11457152

This should fix ctfconvert producing error messages during kernel
builds, similar to:

  ERROR: scsi_all.c: die 24561: failed to retrieve array bounds

These were caused by incorrect debug information for flexible array
members of structs.

git-svn-id: svn://svn.freebsd.org/base/stable/9@236296 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp