DI: Set DILexicalBlock columns >= 65536 to 0/unknown
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 28 Aug 2015 22:58:50 +0000 (22:58 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 28 Aug 2015 22:58:50 +0000 (22:58 +0000)
commit091adc7e2086ca8a0c84b932e7d9df4243100ed8
treeca3fcc066cf931988c78196ae5109765f6fadac1
parentcf5151a5ced64010ffa8b1f8e4cac6c8f660366a
DI: Set DILexicalBlock columns >= 65536 to 0/unknown

This fixes PR24621 and matches what we do for `DILocation`.  Although
the limit seems somewhat artificial, there are places in the backend
that also assume 16-bit columns, so we may as well just be consistent
about the limits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246349 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
lib/IR/DebugInfoMetadata.cpp
unittests/IR/MetadataTest.cpp