Fix pr5470. Tablegen handles template arguments by temporarily setting their
authorBob Wilson <bob.wilson@apple.com>
Sun, 22 Nov 2009 03:58:57 +0000 (03:58 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sun, 22 Nov 2009 03:58:57 +0000 (03:58 +0000)
commit2214dc07649d36e47d11914e1ffc7c56eb40ad73
tree7681abaab8da58a814deacdd0f7bc5c22224f977
parentf27f115ef5d62b9dccfb0201da0008a8b8914cd3
Fix pr5470. Tablegen handles template arguments by temporarily setting their
values, resolving references to them, and then removing the definitions.
If a template argument is set to an undefined value, we need to resolve
references to that argument to an explicit undefined value.  The current code
leaves the reference to the template argument as it is, which causes an
assertion failure later when the definition of the template argument is
removed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89581 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/UnsetBitInit.td [new file with mode: 0644]
utils/TableGen/Record.cpp