1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/TableGen/UnsetBitInit.td
Bob Wilson 5d46596707 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.

llvm-svn: 89581
2009-11-22 03:58:57 +00:00

11 lines
117 B
TableGen

// RUN: tblgen %s
class x {
field bits<32> A;
}
class y<bits<2> B> : x {
let A{21-20} = B;
}
def z : y<{0,?}>;