DebugInfo: Support up to 2^16 arguments in a subprogram
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 28 Apr 2015 01:07:33 +0000 (01:07 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 28 Apr 2015 01:07:33 +0000 (01:07 +0000)
commitfef483667f3c793d6aff81c69972549406e27ff6
treebe938bf53b312829738a00707d61c2bd88f1f9a6
parent0dff695ba9d64003565ae5f716cca62387f0dc14
DebugInfo: Support up to 2^16 arguments in a subprogram

Support up to 2^16 arguments to a function.  If we do hit the limit,
assert out rather than restarting at 0 as we've done historically.

This fixes PR23332.  A clang test will follow.

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