diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-06-10 20:10:08 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-06-10 20:10:08 +0000 |
commit | 258e8223e621f56fb1b17af150dc1ac7d6ddcddd (patch) | |
tree | 4953932059981d9fa42beba32d9afcf71130d84f /test/TableGen | |
parent | 1916157ef6d0e9126b6f1a48859e3254094205d3 (diff) | |
download | llvm-258e8223e621f56fb1b17af150dc1ac7d6ddcddd.tar.gz llvm-258e8223e621f56fb1b17af150dc1ac7d6ddcddd.tar.bz2 llvm-258e8223e621f56fb1b17af150dc1ac7d6ddcddd.tar.xz |
Fix error in tablegen when either operand of !if is an empty list.
!if([Something], []) would error with "No type for list".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/if-empty-list-arg.td | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/TableGen/if-empty-list-arg.td b/test/TableGen/if-empty-list-arg.td new file mode 100644 index 0000000000..39edf58ff2 --- /dev/null +++ b/test/TableGen/if-empty-list-arg.td @@ -0,0 +1,7 @@ +// RUN: llvm-tblgen %s +// XFAIL: vg_leak + +class C<bit cond> { + list<int> X = !if(cond, [1, 2, 3], []); + list<int> Y = !if(cond, [], [4, 5, 6]); +} |