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)
commit1ec75ae963e8d3c8525997bf039db1a5d70bcb64
tree43b240b13fbc66267e269f28534a9efe9084351a
parentb3053d9cbe930de13d2cd391f649d4ab714f6986
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.

llvm-svn: 235955
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/unittests/IR/MetadataTest.cpp